private class ReflectionIClass.ReflectionIField extends IClass.IField
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.reflect.Field |
field |
Constructor and Description |
---|
ReflectionIField(java.lang.reflect.Field field) |
Modifier and Type | Method and Description |
---|---|
Access |
getAccess() |
Java.Annotation[] |
getAnnotations() |
java.lang.Object |
getConstantValue()
This implementation of
IClass.IField.getConstantValue() is
not completely correct:
It treats non-static fields as non-constant
Even fields with a non-constant initializer are identified
as constant. |
java.lang.String |
getName() |
IClass |
getType() |
boolean |
isStatic() |
java.lang.String |
toString() |
getDeclaringIClass, getDescriptor
public Access getAccess()
getAccess
in interface IClass.IMember
getAccess
in class IClass.IField
Access.PRIVATE
, Access.PROTECTED
,
Access.DEFAULT
and Access.PUBLIC
.public Java.Annotation[] getAnnotations()
public java.lang.String getName()
getName
in class IClass.IField
public boolean isStatic()
isStatic
in class IClass.IField
public IClass getType()
getType
in class IClass.IField
public java.lang.String toString()
toString
in class IClass.IField
public java.lang.Object getConstantValue() throws CompileException
IClass.IField.getConstantValue()
is
not completely correct:
File.separator
.)
getConstantValue
in class IClass.IField
CompileException