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:
getAccess
in interfaceIClass.IMember
- Returns:
- One of
Access.PRIVATE
,Access.PROTECTED
,Access.DEFAULT
andAccess.PUBLIC
.
-
getDeclaringIClass
Description copied from interface:IClass.IMember
Returns theIClass
that declares thisIClass.IMember
.- Specified by:
getDeclaringIClass
in 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
-