|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bcel.classfile.AccessFlags
org.apache.bcel.classfile.FieldOrMethod
org.apache.bcel.classfile.Field
public final class Field
This class represents the field info structure, i.e., the representation for a variable in the class. See JVM specification for details.
Field Summary | |
---|---|
private static BCELComparator |
_cmp
|
Fields inherited from class org.apache.bcel.classfile.FieldOrMethod |
---|
attributes, attributes_count, constant_pool, name_index, signature_index |
Fields inherited from class org.apache.bcel.classfile.AccessFlags |
---|
access_flags |
Constructor Summary | |
---|---|
Field(java.io.DataInputStream file,
ConstantPool constant_pool)
Construct object from file stream. |
|
Field(Field c)
Initialize from another object. |
|
Field(int access_flags,
int name_index,
int signature_index,
Attribute[] attributes,
ConstantPool constant_pool)
|
Method Summary | |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. |
Field |
copy(ConstantPool _constant_pool)
|
boolean |
equals(java.lang.Object obj)
Return value as defined by given BCELComparator strategy. |
static BCELComparator |
getComparator()
|
ConstantValue |
getConstantValue()
|
Type |
getType()
|
int |
hashCode()
Return value as defined by given BCELComparator strategy. |
static void |
setComparator(BCELComparator comparator)
|
java.lang.String |
toString()
Return string representation close to declaration format, `public static final short MAX = 100', e.g.. |
Methods inherited from class org.apache.bcel.classfile.FieldOrMethod |
---|
copy_, dump, getAttributes, getConstantPool, getName, getNameIndex, getSignature, getSignatureIndex, setAttributes, setConstantPool, setNameIndex, setSignatureIndex |
Methods inherited from class org.apache.bcel.classfile.AccessFlags |
---|
getAccessFlags, getModifiers, isAbstract, isAbstract, isAnnotation, isAnnotation, isEnum, isEnum, isFinal, isFinal, isInterface, isInterface, isNative, isNative, isPrivate, isPrivate, isProtected, isProtected, isPublic, isPublic, isStatic, isStatic, isStrictfp, isStrictfp, isSynchronized, isSynchronized, isSynthetic, isSynthetic, isTransient, isTransient, isVolatile, isVolatile, setAccessFlags, setModifiers |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static BCELComparator _cmp
Constructor Detail |
---|
public Field(Field c)
Field(java.io.DataInputStream file, ConstantPool constant_pool) throws java.io.IOException, ClassFormatException
file
- Input stream
java.io.IOException
ClassFormatException
public Field(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool)
access_flags
- Access rights of fieldname_index
- Points to field name in constant poolsignature_index
- Points to encoded signatureattributes
- Collection of attributesconstant_pool
- Array of constantsMethod Detail |
---|
public void accept(Visitor v)
v
- Visitor objectpublic final ConstantValue getConstantValue()
public final java.lang.String toString()
toString
in class java.lang.Object
public final Field copy(ConstantPool _constant_pool)
public Type getType()
public static BCELComparator getComparator()
public static void setComparator(BCELComparator comparator)
comparator
- Comparison strategy objectpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |