CONSTANT_*ref_info.
| Modifier and Type | Field and Description |
|---|---|
| private final CstType | definingClass
|
| private final CstNat | nat
|
| Access | Constructor and Description |
|---|---|
| pack-priv | CstMemberRef(CstType
non-null; the type of the defining classnon-null; the name-and-typeConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected int | compareTo0(Constant
non-null; the instance to compare toImplements abstract org. |
| public final boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public final CstType | |
| public final CstNat | |
| public final int | |
| public final boolean | isCategory2()
Implements abstract org. true if this instance is a category-2 constant,
meaning it takes up two slots in the constant pool, or
false if this instance is category-1.
|
| public final String | toHuman()
Implements org. |
| public final String |
| definingClass | back to summary |
|---|---|
| private final CstType definingClass
| |
| nat | back to summary |
|---|---|
| private final CstNat nat
| |
| CstMemberRef | back to summary |
|---|---|
| pack-priv CstMemberRef(CstType definingClass, CstNat nat) Constructs an instance. | |
| compareTo0 | back to summary |
|---|---|
| protected int compareTo0(Constant other) Implements abstract org. Doc from org. Compare the values of this and another instance, which are guaranteed to be of the same class. Subclasses must implement this. Note This implementation just compares the defining
class and name, and it is up to subclasses to compare the rest
after calling | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getDefiningClass | back to summary |
|---|---|
| public final CstType getDefiningClass() Gets the type of the defining class.
| |
| getNat | back to summary |
|---|---|
| public final CstNat getNat() Gets the defining name-and-type.
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isCategory2 | back to summary |
|---|---|
| public final boolean isCategory2() Implements abstract org. Doc from org. Returns
| |
| toHuman | back to summary |
|---|---|
| public final String toHuman() Implements org. Doc from org. Return the "human" string form of this instance. This is
generally less "debuggy" than
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object. | |