org.aspectj.apache.bcel.classfile
Class Field

java.lang.Object
  extended by org.aspectj.apache.bcel.classfile.Modifiers
      extended by org.aspectj.apache.bcel.classfile.FieldOrMethod
          extended by 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.


Field Summary
static Field[] NoFields
           
 
Fields inherited from class org.aspectj.apache.bcel.classfile.FieldOrMethod
attributes, cpool, nameIndex, signatureIndex
 
Fields inherited from class org.aspectj.apache.bcel.classfile.Modifiers
modifiers
 
Constructor Summary
Field(Field c)
           
Field(int modifiers, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool cpool)
           
 
Method Summary
 void accept(ClassVisitor v)
           
 ConstantValue getConstantValue()
           
 Type getType()
          return the type of the field
 java.lang.String toString()
          Return string representation close to declaration format, eg: 'public static final short MAX = 100'
 
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
 

Field Detail

NoFields

public static final Field[] NoFields
Constructor Detail

Field

public Field(Field c)

Field

public Field(int modifiers,
             int nameIndex,
             int signatureIndex,
             Attribute[] attributes,
             ConstantPool cpool)
Method Detail

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