CONSTANT_NameAndType_info.
| Modifier and Type | Field and Description |
|---|---|
| private final CstString | descriptor
|
| private final CstString | name
|
| public static final CstNat | PRIMITIVE_TYPE_NAT
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected int | compareTo0(Constant
non-null; the instance to compare toImplements abstract org. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public CstString | |
| public Type | Returns: non-null; the field typeGets the field type corresponding to this instance's descriptor. |
| public CstString | |
| public int | |
| public 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 boolean | Returns: true iff this is a reference to an
instance initialization methodGets whether this instance has the name of a standard class initialization method. |
| public final boolean | Returns: true iff this is a reference to an
instance initialization methodGets whether this instance has the name of a standard instance initialization method. |
| public String | Returns: non-null; the human formImplements org. |
| public String | |
| public String | typeName()
Implements abstract org. |
| descriptor | back to summary |
|---|---|
| private final CstString descriptor
| |
| name | back to summary |
|---|---|
| private final CstString name
| |
| PRIMITIVE_TYPE_NAT | back to summary |
|---|---|
| public static final CstNat PRIMITIVE_TYPE_NAT
| |
| CstNat | back to summary |
|---|---|
| public CstNat(CstString name, CstString descriptor) 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. | |
| equals | back to summary |
|---|---|
| public 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. | |
| getDescriptor | back to summary |
|---|---|
| public CstString getDescriptor() Gets the descriptor.
| |
| getFieldType | back to summary |
|---|---|
| public Type getFieldType() Gets the field type corresponding to this instance's descriptor. This method is only valid to call if the descriptor in fact describes a field (and not a method).
| |
| getName | back to summary |
|---|---|
| public CstString getName() Gets the name.
| |
| hashCode | back to summary |
|---|---|
| public 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 boolean isCategory2() Implements abstract org. Doc from org. Returns
| |
| isClassInit | back to summary |
|---|---|
| public final boolean isClassInit() Gets whether this instance has the name of a standard class
initialization method. This is just a convenient shorthand for
| |
| isInstanceInit | back to summary |
|---|---|
| public final boolean isInstanceInit() Gets whether this instance has the name of a standard instance
initialization method. This is just a convenient shorthand for
| |
| toHuman | back to summary |
|---|---|
| public String toHuman() Implements org. Returns an unadorned but human-readable version of the name-and-type value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| typeName | back to summary |
|---|---|
| public String typeName() Implements abstract org. Doc from org. Returns the human name for the particular type of constant this instance is. | |