public class ParticularValueFactory extends BasicValueFactory implements ValueFactory
Modifier and Type | Field and Description |
---|---|
protected ValueFactory |
referenceValueFactory |
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,
java.lang.Object elementValues)
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(Clazz referencedClass,
boolean mayBeExtension,
boolean mayBeNull,
@NotNull AnalyzedObject value)
Creates a new ReferenceValue that represents the given type.
|
ReferenceValue |
createReferenceValue(Clazz referencedClass,
boolean mayBeExtension,
boolean mayBeNull,
CodeLocation creationLocation,
@NotNull AnalyzedObject 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)
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)
Deprecated.
|
ReferenceValue |
createReferenceValue(java.lang.String type,
Clazz referencedClass,
boolean mayBeExtension,
boolean mayBeNull,
java.lang.Object value)
Deprecated.
|
ReferenceValue |
createReferenceValueForId(Clazz referencedClass,
boolean mayBeExtension,
boolean mayBeNull,
java.lang.Object id,
@NotNull AnalyzedObject value)
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)
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)
Deprecated.
|
ReferenceValue |
createReferenceValueNull()
Creates a new ReferenceValue that represents
null . |
checkCreationLocation, checkReferenceValue, createDoubleValue, createFloatValue, createIntegerValue, createIntegerValue, createLongValue, createValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDoubleValue, createFloatValue, createIntegerValue, createIntegerValue, createLongValue, createReferenceValue, createReferenceValue, createReferenceValue, createValue
protected final ValueFactory referenceValueFactory
public 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)
ValueFactory
createIntegerValue
in interface ValueFactory
createIntegerValue
in class BasicValueFactory
public LongValue createLongValue(long value)
ValueFactory
createLongValue
in interface ValueFactory
createLongValue
in class BasicValueFactory
public FloatValue createFloatValue(float value)
ValueFactory
createFloatValue
in interface ValueFactory
createFloatValue
in class BasicValueFactory
public DoubleValue createDoubleValue(double value)
ValueFactory
createDoubleValue
in interface ValueFactory
createDoubleValue
in class BasicValueFactory
public ReferenceValue createReferenceValue()
ValueFactory
createReferenceValue
in interface ValueFactory
createReferenceValue
in class BasicValueFactory
public ReferenceValue createReferenceValueNull()
ValueFactory
null
.createReferenceValueNull
in interface ValueFactory
createReferenceValueNull
in class BasicValueFactory
public ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull)
ValueFactory
null
, the ReferenceValue represents
null
.createReferenceValue
in interface ValueFactory
createReferenceValue
in class BasicValueFactory
@Deprecated public ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object value)
createReferenceValue(Clazz, boolean, boolean,
AnalyzedObject)
.createReferenceValue
in interface ValueFactory
createReferenceValue
in class BasicValueFactory
public ReferenceValue createReferenceValue(Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, @NotNull @NotNull AnalyzedObject value)
ValueFactory
null
, the ReferenceValue represents
null
.
The object wrapped by AnalyzedObject
is either the value of the reference during
execution or a Model
of it.
createReferenceValue
in interface ValueFactory
createReferenceValue
in class BasicValueFactory
public ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Clazz creationClass, Method creationMethod, int creationOffset)
ValueFactory
null
, the ReferenceValue represents null
.createReferenceValue
in interface ValueFactory
createReferenceValue
in class BasicValueFactory
@Deprecated public ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Clazz creationClass, Method creationMethod, int creationOffset, java.lang.Object value)
createReferenceValue
in interface ValueFactory
createReferenceValue
in class BasicValueFactory
public ReferenceValue createReferenceValue(Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, CodeLocation creationLocation, @NotNull @NotNull AnalyzedObject value)
ValueFactory
null
, the ReferenceValue represents null
.
The object wrapped by AnalyzedObject
is either the value of the reference during
execution or a Model
of it.
createReferenceValue
in interface ValueFactory
createReferenceValue
in class BasicValueFactory
@Deprecated public ReferenceValue createReferenceValueForId(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object id, java.lang.Object value)
createReferenceValueForId
in interface ValueFactory
createReferenceValueForId
in class BasicValueFactory
public ReferenceValue createReferenceValueForId(Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object id, @NotNull @NotNull AnalyzedObject value)
ValueFactory
null
, the
ReferenceValue represents null
.
The object wrapped by AnalyzedObject
is either the value of the reference during
execution or a Model
of it.
createReferenceValueForId
in interface ValueFactory
createReferenceValueForId
in class BasicValueFactory
public ReferenceValue createReferenceValueForId(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object id)
ValueFactory
null
, the
ReferenceValue represents null
.createReferenceValueForId
in interface ValueFactory
createReferenceValueForId
in class BasicValueFactory
public ReferenceValue createArrayReferenceValue(java.lang.String type, Clazz referencedClass, IntegerValue arrayLength)
ValueFactory
createArrayReferenceValue
in interface ValueFactory
createArrayReferenceValue
in class BasicValueFactory
public ReferenceValue createArrayReferenceValue(java.lang.String type, Clazz referencedClass, IntegerValue arrayLength, java.lang.Object elementValues)
ValueFactory
createArrayReferenceValue
in interface ValueFactory
createArrayReferenceValue
in class BasicValueFactory