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, signatureIndexModifier and TypeFieldDescriptionprotected Attribute[]protected ConstantPoolprotected intprotected int -
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, setAttributesModifier and TypeMethodDescriptionfinal voiddump(DataOutputStream file) final Attribute[]final ConstantPoolfinal StringThis will return the contents of a signature attribute attached to a member, or if there is none it will return the same as 'getSignature()'.final StringHunts for a signature attribute on the member and returns its contents.final StringgetName()final intfinal Stringfinal intvoidsetAttributes(Attribute[] attributes) Methods inherited from class Modifiers
getModifiers, isAbstract, isBridge, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVarargs, isVolatile, setModifiersModifier and TypeMethodDescriptionfinal intfinal booleanfinal booleanisBridge()final booleanisFinal()final booleanfinal booleanisNative()final booleanfinal booleanfinal booleanisPublic()final booleanisStatic()final booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal voidsetModifiers(int modifiers)
-
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
-