org.aspectj.apache.bcel.classfile
Class Field
java.lang.Object
org.aspectj.apache.bcel.classfile.Modifiers
org.aspectj.apache.bcel.classfile.FieldOrMethod
org.aspectj.apache.bcel.classfile.Field
- All Implemented Interfaces:
- Node
public final class Field
- extends FieldOrMethod
This class represents the field info structure, i.e., the representation for a variable in the class. See JVM specification for
details.
Methods inherited from class org.aspectj.apache.bcel.classfile.FieldOrMethod |
dump, getAnnotations, getAttributes, getConstantPool, getDeclaredSignature, getGenericSignature, getName, getNameIndex, getSignature, getSignatureIndex, setAttributes |
Methods inherited from class org.aspectj.apache.bcel.classfile.Modifiers |
getModifiers, isAbstract, isBridge, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVarargs, isVolatile, setModifiers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NoFields
public static final Field[] NoFields
Field
public Field(Field c)
Field
public Field(int modifiers,
int nameIndex,
int signatureIndex,
Attribute[] attributes,
ConstantPool cpool)
accept
public void accept(ClassVisitor v)
getConstantValue
public final ConstantValue getConstantValue()
- Returns:
- constant value associated with this field (may be null)
toString
public final java.lang.String toString()
- Return string representation close to declaration format, eg: 'public static final short MAX = 100'
- Overrides:
toString
in class java.lang.Object
getType
public Type getType()
- return the type of the field