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
public abstract class IClass.IField
- extends java.lang.Object
- implements IClass.IMember
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IClass.IField
public IClass.IField()
getAccess
public abstract Access getAccess()
- Specified by:
getAccess
in interface IClass.IMember
- Returns:
- One of
Access.PRIVATE
, Access.PROTECTED
,
Access.DEFAULT
and Access.PUBLIC
.
getDeclaringIClass
public IClass getDeclaringIClass()
- Description copied from interface:
IClass.IMember
- Returns the
IClass
that declares this IClass.IMember
.
- Specified by:
getDeclaringIClass
in interface IClass.IMember
isStatic
public abstract boolean isStatic()
getType
public abstract IClass getType()
throws CompileException
- Throws:
CompileException
getName
public abstract java.lang.String getName()
getDescriptor
public java.lang.String getDescriptor()
throws CompileException
- Throws:
CompileException
getConstantValue
public abstract java.lang.Object getConstantValue()
throws CompileException
- 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
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2001-2012. All Rights Reserved.