Package org.codehaus.janino
Class UnitCompiler.SimpleIField
java.lang.Object
org.codehaus.janino.IClass.IField
org.codehaus.janino.UnitCompiler.SimpleIField
- All Implemented Interfaces:
IClass.IMember
- Enclosing class:
UnitCompiler
Short-hand implementation of
IClass.IField
that implements a non-constant, non-static,
package-accessible field.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codehaus.janino.IClass.IField
getDeclaringIClass, getDescriptor, toString
-
Field Details
-
name
-
type
-
-
Constructor Details
-
SimpleIField
-
-
Method Details
-
getConstantValue
Description copied from class:IClass.IField
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).- Specified by:
getConstantValue
in classIClass.IField
-
getName
- Specified by:
getName
in classIClass.IField
- Returns:
- The name this field
-
getType
- Specified by:
getType
in classIClass.IField
- Returns:
- The type of this field
-
isStatic
public boolean isStatic()- Specified by:
isStatic
in classIClass.IField
- Returns:
- Whether this field is STATIC
-
getAccess
- Specified by:
getAccess
in interfaceIClass.IMember
- Specified by:
getAccess
in classIClass.IField
- Returns:
- One of
Access.PRIVATE
,Access.PROTECTED
,Access.DEFAULT
andAccess.PUBLIC
.
-
getAnnotations
- Returns:
- Modifiers and/or annotations of this member
-