public class DetailedArrayReferenceValue extends IdentifiedArrayReferenceValue
IdentifiedArrayReferenceValue represents an identified array reference
value with its elements.arrayLengthmayBeExtension, mayBeNull, referencedClass, typeALWAYS, MAYBE, NEVER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INSTRUCTION_OFFSET, TYPE_INTEGER, TYPE_LONG, TYPE_REFERENCE, TYPE_TOP| Constructor and Description |
|---|
DetailedArrayReferenceValue(java.lang.String type,
Clazz referencedClass,
boolean mayBeExtension,
IntegerValue arrayLength,
ValueFactory valuefactory,
int id)
Creates a new array reference value with the given ID.
|
| Modifier and Type | Method and Description |
|---|---|
void |
arrayStore(IntegerValue indexValue,
Value value)
Stores the given value at the given index in the given array, assuming
this type is an array.
|
DoubleValue |
doubleArrayLoad(IntegerValue indexValue,
ValueFactory valueFactory)
Returns the value of the array at the given index, assuming this type
is an double array.
|
int |
equal(ReferenceValue other)
Returns whether this ReferenceValue is equal to the given other
ReferenceValue.
|
boolean |
equals(java.lang.Object object) |
FloatValue |
floatArrayLoad(IntegerValue indexValue,
ValueFactory valueFactory)
Returns the value of the array at the given index, assuming this type
is an float array.
|
ReferenceValue |
generalize(ReferenceValue other)
Returns the generalization of this ReferenceValue and the given other
ReferenceValue.
|
int |
hashCode() |
IntegerValue |
integerArrayLoad(IntegerValue indexValue,
ValueFactory valueFactory)
Returns the value of the array at the given index, assuming this type
is an integer array.
|
boolean |
isParticular()
Returns whether this Value represents a single particular (known)
value.
|
LongValue |
longArrayLoad(IntegerValue indexValue,
ValueFactory valueFactory)
Returns the value of the array at the given index, assuming this type
is an long array.
|
ReferenceValue |
referenceArrayLoad(IntegerValue indexValue,
ValueFactory valueFactory)
Returns the value of the array at the given index, assuming this type
is a reference array.
|
java.lang.String |
toString() |
equal, isSpecificarrayLength, equal, generalizecast, equal, generalize, generalizeMayBeNull, getReferencedClass, getType, instanceOf, internalType, isNull, mayBeExtensioncomputationalType, equal, equal, equal, equal, equal, equal, generalize, generalize, generalize, generalize, generalize, generalize, generalize, generalize, isNotNull, notEqual, referenceValue, valuecategory1Value, isCategory2category2Value, doubleValue, floatValue, instructionOffsetValue, integerValue, longValuepublic DetailedArrayReferenceValue(java.lang.String type,
Clazz referencedClass,
boolean mayBeExtension,
IntegerValue arrayLength,
ValueFactory valuefactory,
int id)
public IntegerValue integerArrayLoad(IntegerValue indexValue, ValueFactory valueFactory)
ReferenceValueintegerArrayLoad in class ReferenceValuepublic LongValue longArrayLoad(IntegerValue indexValue, ValueFactory valueFactory)
ReferenceValuelongArrayLoad in class ReferenceValuepublic FloatValue floatArrayLoad(IntegerValue indexValue, ValueFactory valueFactory)
ReferenceValuefloatArrayLoad in class ReferenceValuepublic DoubleValue doubleArrayLoad(IntegerValue indexValue, ValueFactory valueFactory)
ReferenceValuedoubleArrayLoad in class ReferenceValuepublic ReferenceValue referenceArrayLoad(IntegerValue indexValue, ValueFactory valueFactory)
ReferenceValuereferenceArrayLoad in class TypedReferenceValuepublic void arrayStore(IntegerValue indexValue, Value value)
ReferenceValuearrayStore in class ReferenceValuepublic ReferenceValue generalize(ReferenceValue other)
ReferenceValuegeneralize in class IdentifiedArrayReferenceValuepublic int equal(ReferenceValue other)
ReferenceValueequal in class IdentifiedArrayReferenceValueNEVER, MAYBE, or ALWAYS.public boolean isParticular()
ValueisParticular in class TypedReferenceValuepublic boolean equals(java.lang.Object object)
equals in class IdentifiedArrayReferenceValuepublic int hashCode()
hashCode in class IdentifiedArrayReferenceValuepublic java.lang.String toString()
toString in class IdentifiedArrayReferenceValue