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
This class represents the field info structure, i.e., the representation for a variable in the class. See JVM specification for
details.
- Version:
- $Id: Field.java,v 1.6 2009/09/15 03:33:52 aclement Exp $
- Author:
- M. Dahm
-
Field Summary
FieldsFields inherited from class FieldOrMethod
attributes, cpool, nameIndex, signatureIndex -
Constructor Summary
ConstructorsConstructorDescriptionField(int modifiers, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool cpool) -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal ConstantValuegetType()return the type of the fieldfinal StringtoString()Return string representation close to declaration format, eg: 'public static final short MAX = 100'Methods inherited from class FieldOrMethod
dump, getAnnotations, getAttributes, getConstantPool, getDeclaredSignature, getGenericSignature, getName, getNameIndex, getSignature, getSignatureIndex, setAttributesMethods inherited from class Modifiers
getModifiers, isAbstract, isBridge, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVarargs, isVolatile, setModifiers
-
Field Details
-
NoFields
-
-
Constructor Details
-
Field
-
Field
public Field(int modifiers, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool cpool)
-
-
Method Details
-
accept
-
getConstantValue
- Returns:
- constant value associated with this field (may be null)
-
toString
-
getType
return the type of the field
-