Package randoop.sequence
Class ReferenceValue
java.lang.Object
randoop.sequence.ReferenceValue
Represents a
ReferenceType
value created by the execution of a Statement
.
Includes the type.-
Field Summary
Modifier and TypeFieldDescriptionprivate final ReferenceType
The type of this value.private final Object
TheObject
reference of this value. -
Constructor Summary
ConstructorDescriptionReferenceValue
(ReferenceType type, Object value) Create the value object given its type andObject
reference. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether twoReferenceValue
objects are equal.Returns theObject
reference of this value.getType()
Returns the type of this value.int
hashCode()
toString()
-
Field Details
-
type
The type of this value. -
value
TheObject
reference of this value.
-
-
Constructor Details
-
ReferenceValue
ReferenceValue(ReferenceType type, Object value) Create the value object given its type andObject
reference.- Parameters:
type
- the type of this valuevalue
- theObject
reference to this value
-
-
Method Details
-
equals
Indicates whether twoReferenceValue
objects are equal. Note: tests theObject
value of each object by identity. -
hashCode
public int hashCode() -
toString
-
getObjectValue
Returns theObject
reference of this value.- Returns:
- the reference to the value
-
getType
Returns the type of this value.- Returns:
- the type of this value
-