public class ParticularValueFactory extends BasicValueFactory implements ValueFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
ParticularValueFactory.ReferenceValueFactory
Deprecated.
|
DOUBLE_VALUE, FLOAT_VALUE, INTEGER_VALUE, LONG_VALUE, REFERENCE_VALUE, UNKNOWN_VALUE| Constructor and Description |
|---|
ParticularValueFactory()
Creates a new ParticularValueFactory which does not keep track of particular references.
|
ParticularValueFactory(ValueFactory referenceValueFactory)
Creates a new ParticularValueFactory, which uses the given valuefactory for both array and non-array reference construction.
|
ParticularValueFactory(ValueFactory arrayReferenceValueFactory,
ValueFactory referenceValueFactory)
Creates a new ParticularValueFactory.
|
| Modifier and Type | Method and Description |
|---|---|
ReferenceValue |
createArrayReferenceValue(java.lang.String type,
Clazz referencedClass,
IntegerValue arrayLength)
Creates a new ReferenceValue that represents a non-null array with
elements of the given type, with the given length.
|
ReferenceValue |
createArrayReferenceValue(java.lang.String type,
Clazz referencedClass,
IntegerValue arrayLength,
Value elementValue)
Creates a new ReferenceValue that represents a non-null array with
elements of the given type, with the given length and initial element
values.
|
DoubleValue |
createDoubleValue(double value)
Creates a new DoubleValue with a given particular value.
|
FloatValue |
createFloatValue(float value)
Creates a new FloatValue with a given particular value.
|
IntegerValue |
createIntegerValue(int value)
Creates a new IntegerValue with a given particular value.
|
LongValue |
createLongValue(long value)
Creates a new LongValue with a given particular value.
|
ReferenceValue |
createReferenceValue()
Creates a new ReferenceValue of an undefined type.
|
ReferenceValue |
createReferenceValue(java.lang.String type,
Clazz referencedClass,
boolean mayBeExtension,
boolean mayBeNull)
Creates a new ReferenceValue that represents the given type.
|
ReferenceValue |
createReferenceValue(java.lang.String type,
Clazz referencedClass,
boolean mayBeExtension,
boolean mayBeNull,
Clazz creationClass,
Method creationMethod,
int creationOffset)
Creates a new ReferenceValue that represents the given type, created at the
specified code location.
|
ReferenceValue |
createReferenceValue(java.lang.String type,
Clazz referencedClass,
boolean mayBeExtension,
boolean mayBeNull,
Clazz creationClass,
Method creationMethod,
int creationOffset,
java.lang.Object value)
Creates a new ReferenceValue that represents the given type, created at the
specified code location.
|
ReferenceValue |
createReferenceValue(java.lang.String type,
Clazz referencedClass,
boolean mayBeExtension,
boolean mayBeNull,
java.lang.Object value)
Creates a new ReferenceValue that represents the given type.
|
ReferenceValue |
createReferenceValueForId(java.lang.String type,
Clazz referencedClass,
boolean mayBeExtension,
boolean mayBeNull,
java.lang.Object id)
Creates a new ReferenceValue that represents the given type with a specified ID.
|
ReferenceValue |
createReferenceValueForId(java.lang.String type,
Clazz referencedClass,
boolean mayBeExtension,
boolean mayBeNull,
java.lang.Object id,
java.lang.Object value)
Creates a new ReferenceValue that represents the given type with a specified ID.
|
ReferenceValue |
createReferenceValueNull()
Creates a new ReferenceValue that represents
null. |
createDoubleValue, createFloatValue, createIntegerValue, createIntegerValue, createLongValue, createValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDoubleValue, createFloatValue, createIntegerValue, createIntegerValue, createLongValue, createReferenceValue, createReferenceValue, createValuepublic ParticularValueFactory()
public ParticularValueFactory(ValueFactory referenceValueFactory)
public ParticularValueFactory(ValueFactory arrayReferenceValueFactory, ValueFactory referenceValueFactory)
arrayReferenceValueFactory - the valuefactory to delegate new array references to.referenceValueFactory - the valuefactory to delegate new references to.public IntegerValue createIntegerValue(int value)
ValueFactorycreateIntegerValue in interface ValueFactorycreateIntegerValue in class BasicValueFactorypublic LongValue createLongValue(long value)
ValueFactorycreateLongValue in interface ValueFactorycreateLongValue in class BasicValueFactorypublic FloatValue createFloatValue(float value)
ValueFactorycreateFloatValue in interface ValueFactorycreateFloatValue in class BasicValueFactorypublic DoubleValue createDoubleValue(double value)
ValueFactorycreateDoubleValue in interface ValueFactorycreateDoubleValue in class BasicValueFactorypublic ReferenceValue createReferenceValue()
ValueFactorycreateReferenceValue in interface ValueFactorycreateReferenceValue in class BasicValueFactorypublic ReferenceValue createReferenceValueNull()
ValueFactorynull.createReferenceValueNull in interface ValueFactorycreateReferenceValueNull in class BasicValueFactorypublic ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull)
ValueFactorynull, the ReferenceValue represents null.createReferenceValue in interface ValueFactorycreateReferenceValue in class BasicValueFactorypublic ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object value)
ValueFactorynull, the ReferenceValue represents null.
The object is the actual value of the reference during execution (can be null).createReferenceValue in interface ValueFactorycreateReferenceValue in class BasicValueFactorypublic ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Clazz creationClass, Method creationMethod, int creationOffset)
ValueFactorynull, the ReferenceValue represents null.
The object is the actual value of the reference during execution (can be null).createReferenceValue in interface ValueFactorycreateReferenceValue in class BasicValueFactorypublic ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Clazz creationClass, Method creationMethod, int creationOffset, java.lang.Object value)
ValueFactorynull, the ReferenceValue represents null.
The object is the actual value of the reference during execution (can be null).createReferenceValue in interface ValueFactorycreateReferenceValue in class BasicValueFactorypublic ReferenceValue createReferenceValueForId(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object id, java.lang.Object value)
ValueFactorynull, the ReferenceValue represents null.
The object is the actual value of the reference during execution (can be null).createReferenceValueForId in interface ValueFactorycreateReferenceValueForId in class BasicValueFactorypublic ReferenceValue createReferenceValueForId(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object id)
ValueFactorynull, the ReferenceValue represents null.createReferenceValueForId in interface ValueFactorycreateReferenceValueForId in class BasicValueFactorypublic ReferenceValue createArrayReferenceValue(java.lang.String type, Clazz referencedClass, IntegerValue arrayLength)
ValueFactorycreateArrayReferenceValue in interface ValueFactorycreateArrayReferenceValue in class BasicValueFactorypublic ReferenceValue createArrayReferenceValue(java.lang.String type, Clazz referencedClass, IntegerValue arrayLength, Value elementValue)
ValueFactorycreateArrayReferenceValue in interface ValueFactorycreateArrayReferenceValue in class BasicValueFactory