| Modifier and Type | Field and Description |
|---|---|
| private static BCELComparator | |
| public static final Field[] | EMPTY_ARRAY
Empty array constant. |
| pack-priv static final Field[] | EMPTY_FIELD_ARRAY
Empty array. |
| Access | Constructor and Description |
|---|---|
| pack-priv | Field(final DataInput
Input stream. file, final ConstantPool constantPool)Constructs object from file stream. |
| public | |
| public | Field(final int
Access rights of field accessFlags, final int Points to field name in constant pool nameIndex, final int Points to encoded signature signatureIndex, final Attribute[] Collection of attributes attributes, final ConstantPool Array of constants constantPool)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(final Visitor
Visitor object v)Implements org. |
| public Field | |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. |
| public static BCELComparator | |
| public ConstantValue | |
| public Type | Returns: type of fieldSee https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.2.2 |
| public int | hashCode()
Overrides java. |
| public static void | |
| public String | Returns: String representation of field, including the signature.Overrides java. |
| bcelComparator | back to summary |
|---|---|
| private static BCELComparator<Field> bcelComparator | |
| EMPTY_ARRAY | back to summary |
|---|---|
| public static final Field[] EMPTY_ARRAY Empty array constant.
| |
| EMPTY_FIELD_ARRAY | back to summary |
|---|---|
| pack-priv static final Field[] EMPTY_FIELD_ARRAY Empty array. | |
| Field | back to summary |
|---|---|
| pack-priv Field(final DataInput file, final ConstantPool constantPool) throws IOException, ClassFormatException Constructs object from file stream.
| |
| Field | back to summary |
|---|---|
| public Field(final Field c) Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy.
| |
| Field | back to summary |
|---|---|
public Field(final int accessFlags, final int nameIndex, final int signatureIndex, final Attribute[] attributes, final ConstantPool constantPool)
| |
| accept | back to summary |
|---|---|
| public void accept(final Visitor v) Implements org. Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects. | |
| copy | back to summary |
|---|---|
public Field copy(final ConstantPool constantPool)
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Return value as defined by given BCELComparator strategy. By default two Field objects are said to be equal when their names and signatures are equal.
| |
| getComparator | back to summary |
|---|---|
public static BCELComparator
| |
| getConstantValue | back to summary |
|---|---|
public ConstantValue getConstantValue()
| |
| getType | back to summary |
|---|---|
| public Type getType() See https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.2.2
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Return value as defined by given BCELComparator strategy. By default return the hash code of the field's name XOR signature.
| |
| setComparator | back to summary |
|---|---|
public static void setComparator(final BCELComparator<Field> comparator)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return string representation close to declaration format, 'public static final short MAX = 100', e.g.. | |