org.apache.bcel.classfile
public final class Field extends FieldOrMethod
Constructor Summary | |
---|---|
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(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..
|
Parameters: access_flags Access rights of field name_index Points to field name in constant pool signature_index Points to encoded signature attributes Collection of attributes constant_pool Array of constants
Parameters: v Visitor object
Returns: deep copy of this field
See Also: java.lang.Object#equals(java.lang.Object)
Returns: Comparison strategy object
Returns: constant value associated with this field (may be null)
Returns: type of field
See Also: java.lang.Object#hashCode()
Parameters: comparator Comparison strategy object
Returns: String representation of field, including the signature.