public final class Field extends FieldOrMethod
Modifier and Type | Field and Description |
---|---|
static Field[] |
EMPTY_ARRAY
Empty array constant.
|
attributes, attributes_count, constant_pool, name_index, signature_index
access_flags
Constructor and Description |
---|
Field(Field c)
Initialize from another object.
|
Field(int access_flags,
int name_index,
int signature_index,
Attribute[] attributes,
ConstantPool constant_pool) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.
|
Field |
copy(ConstantPool constantPool) |
boolean |
equals(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) |
String |
toString()
Return string representation close to declaration format, `public static final short MAX = 100', e.g..
|
copy_, dump, getAnnotationEntries, getAttributes, getConstantPool, getGenericSignature, getName, getNameIndex, getSignature, getSignatureIndex, setAttributes, setConstantPool, setNameIndex, setSignatureIndex
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, isVarArgs, isVarArgs, isVolatile, isVolatile, setAccessFlags, setModifiers
public static final Field[] EMPTY_ARRAY
public Field(Field c)
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 constantspublic static BCELComparator getComparator()
public static void setComparator(BCELComparator comparator)
comparator
- Comparison strategy objectpublic void accept(Visitor v)
v
- Visitor objectpublic Field copy(ConstantPool constantPool)
public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
public ConstantValue getConstantValue()
public int hashCode()
hashCode
in class Object
Object.hashCode()
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.