public static class UnitCompiler.SimpleIField extends IClass.IField
IClass.IField that implements a non-constant, non-static,
package-accessible field.| Constructor and Description |
|---|
SimpleIField(IClass declaringIClass,
String name,
IClass type) |
| Modifier and Type | Method and Description |
|---|---|
Access |
getAccess() |
IClass.IAnnotation[] |
getAnnotations() |
Object |
getConstantValue()
Returns the value of the field if it is a compile-time constant value, i.e. the field is FINAL and its
initializer is a constant expression (JLS7 15.28, bullet 12).
|
String |
getName() |
IClass |
getType() |
boolean |
isStatic() |
getDeclaringIClass, getDescriptor, toStringpublic Object getConstantValue()
IClass.IFieldgetConstantValue in class IClass.IFieldpublic String getName()
getName in class IClass.IFieldpublic IClass getType()
getType in class IClass.IFieldpublic boolean isStatic()
isStatic in class IClass.IFieldpublic Access getAccess()
getAccess in interface IClass.IMembergetAccess in class IClass.IFieldAccess.PRIVATE, Access.PROTECTED, Access.DEFAULT and Access.PUBLIC.public IClass.IAnnotation[] getAnnotations()