Package org.codehaus.janino
Class IClass.IField
java.lang.Object
org.codehaus.janino.IClass.IField
- All Implemented Interfaces:
IClass.IMember
- Direct Known Subclasses:
UnitCompiler.SimpleIField
- Enclosing class:
IClass
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IField
public IField()
-
-
Method Details
-
getAccess
- Specified by:
getAccessin interfaceIClass.IMember- Returns:
- One of
Access.PRIVATE,Access.PROTECTED,Access.DEFAULTandAccess.PUBLIC.
-
getDeclaringIClass
Description copied from interface:IClass.IMemberReturns theIClassthat declares thisIClass.IMember.- Specified by:
getDeclaringIClassin interfaceIClass.IMember
-
isStatic
public abstract boolean isStatic() -
getType
- Throws:
CompileException
-
getName
-
getDescriptor
- Throws:
CompileException
-
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 (JLS2 15.28, bullet 12).- Throws:
CompileException
-
toString
-