Value that is represented with its type in a seven types type system. This type system
distinguishes the UNINITIALZED, INT, FLOAT, LONG, DOUBLE, REFERENCE and RETURNADDRESS types.
| Modifier and Type | Field and Description |
|---|---|
| public static final BasicValue | DOUBLE_VALUE
A double value. |
| public static final BasicValue | FLOAT_VALUE
A float value. |
| public static final BasicValue | INT_VALUE
A byte, boolean, char, short, or int value. |
| public static final BasicValue | LONG_VALUE
A long value. |
| public static final BasicValue | REFERENCE_VALUE
An object or array reference value. |
| public static final BasicValue | RETURNADDRESS_VALUE
A return address value (produced by a jsr instruction). |
| private final Type | |
| public static final BasicValue | UNINITIALIZED_VALUE
An uninitialized value. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. value)Overrides java. |
| public int | getSize()
Implements org. |
| public Type | |
| public int | |
| public boolean | Returns: whether this value corresponds to an object or array reference.Returns whether this value corresponds to an object or array reference. |
| public String |
| DOUBLE_VALUE | back to summary |
|---|---|
| public static final BasicValue DOUBLE_VALUE A double value. | |
| FLOAT_VALUE | back to summary |
|---|---|
| public static final BasicValue FLOAT_VALUE A float value. | |
| INT_VALUE | back to summary |
|---|---|
| public static final BasicValue INT_VALUE A byte, boolean, char, short, or int value. | |
| LONG_VALUE | back to summary |
|---|---|
| public static final BasicValue LONG_VALUE A long value. | |
| REFERENCE_VALUE | back to summary |
|---|---|
| public static final BasicValue REFERENCE_VALUE An object or array reference value. | |
| RETURNADDRESS_VALUE | back to summary |
|---|---|
| public static final BasicValue RETURNADDRESS_VALUE A return address value (produced by a jsr instruction). | |
| type | back to summary |
|---|---|
| private final Type type The | |
| UNINITIALIZED_VALUE | back to summary |
|---|---|
| public static final BasicValue UNINITIALIZED_VALUE An uninitialized value. | |
| BasicValue | back to summary |
|---|---|
| public BasicValue(final Type type) Constructs a new
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object value) 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. | |
| getSize | back to summary |
|---|---|
| public int getSize() Implements org. Doc from org. Returns the size of this value in 32 bits words. This size should be 1 for byte, boolean, char, short, int, float, object and array types, and 2 for long and double.
| |
| getType | back to summary |
|---|---|
| public Type getType() Returns the | |
| 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
| |
| isReference | back to summary |
|---|---|
| public boolean isReference() Returns whether this value corresponds to an object or array reference.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |