| Modifier and Type | Class and Description |
|---|---|
| public static class | CstArray.
List of |
| Modifier and Type | Field and Description |
|---|---|
| private final CstArray. | list
|
| 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 CstArray. | |
| 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 String | toHuman()
Implements org. |
| public String | |
| public String | typeName()
Implements abstract org. |
| list | back to summary |
|---|---|
| private final CstArray.
| |
| CstArray | back to summary |
|---|---|
| public CstArray(CstArray. 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. | |
| getList | back to summary |
|---|---|
| public CstArray. Get the underlying list. | |
| 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
| |
| toHuman | back to summary |
|---|---|
| public 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 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. | |
Constant instances.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(CstArray.
the object to be compared. otherImplements java. |
| public Constant | Returns: non-null; element at that index>= 0, < size(); which indexGets the element at the given index. |
| public void |
| List | back to summary |
|---|---|
| public List(int size) Constructs an instance. All indices initially contain
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(CstArray. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| get | back to summary |
|---|---|
| public Constant get(int n) Gets the element at the given index. It is an error to call
this with the index for an element which was never set; if you
do that, this will throw
| |
| set | back to summary |
|---|---|
| public void set(int n, Constant a) Sets the element at the given index.
| |