public final class ReferenceValue
extends java.lang.Object
ReferenceType
value created by the execution of a Statement
.
Includes the type.Modifier and Type | Field and Description |
---|---|
private ReferenceType |
type
The type of this value.
|
private java.lang.Object |
value
The
Object reference of this value. |
Constructor and Description |
---|
ReferenceValue(ReferenceType type,
java.lang.Object value)
Create the value object given its type and
Object reference. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable java.lang.Object obj)
Indicates whether two
ReferenceValue objects are equal. |
java.lang.Object |
getObjectValue()
Returns the
Object reference of this value. |
ReferenceType |
getType()
Returns the type of this value.
|
int |
hashCode() |
java.lang.String |
toString() |
private final ReferenceType type
private final java.lang.Object value
Object
reference of this value.ReferenceValue(ReferenceType type, java.lang.Object value)
Object
reference.type
- the type of this valuevalue
- the Object
reference to this valuepublic boolean equals(@Nullable java.lang.Object obj)
ReferenceValue
objects are equal. Note: tests the Object
value of each object by identity.equals
in class java.lang.Object
obj
- the object to test for equalitypublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getObjectValue()
Object
reference of this value.public ReferenceType getType()