public class IdentifiedValueFactory extends ParticularValueFactory
referenceValueFactory
DOUBLE_VALUE, FLOAT_VALUE, INTEGER_VALUE, LONG_VALUE, REFERENCE_VALUE, UNKNOWN_VALUE
Constructor and Description |
---|
IdentifiedValueFactory()
Creates a new IdentifiedValueFactory which does not keep track of particular references.
|
IdentifiedValueFactory(ValueFactory referenceValueFactory)
Creates a new IdentifiedValueFactory, which uses the given valuefactory for both array and
non-array reference construction.
|
IdentifiedValueFactory(ValueFactory arrayReferenceValueFactory,
ValueFactory referenceValueFactory)
Creates a new IdentifiedValueFactory.
|
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.
|
DoubleValue |
createDoubleValue()
Creates a new DoubleValue with an undefined value.
|
FloatValue |
createFloatValue()
Creates a new FloatValue with an undefined value.
|
IntegerValue |
createIntegerValue()
Creates a new IntegerValue with an undefined value.
|
LongValue |
createLongValue()
Creates a new LongValue with an undefined value.
|
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(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.
|
static int |
generateReferenceId() |
createArrayReferenceValue, createDoubleValue, createFloatValue, createIntegerValue, createLongValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValueForId, createReferenceValueNull
checkCreationLocation, checkReferenceValue, createIntegerValue, createValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createIntegerValue, createReferenceValue, createReferenceValue, createReferenceValue, createValue
public IdentifiedValueFactory()
public IdentifiedValueFactory(ValueFactory referenceValueFactory)
public IdentifiedValueFactory(ValueFactory arrayReferenceValueFactory, ValueFactory referenceValueFactory)
arrayReferenceValueFactory
- the valuefactory to delegate new array references to.referenceValueFactory
- the valuefactory to delegate new references to.public IntegerValue createIntegerValue()
ValueFactory
createIntegerValue
in interface ValueFactory
createIntegerValue
in class BasicValueFactory
public LongValue createLongValue()
ValueFactory
createLongValue
in interface ValueFactory
createLongValue
in class BasicValueFactory
public FloatValue createFloatValue()
ValueFactory
createFloatValue
in interface ValueFactory
createFloatValue
in class BasicValueFactory
public DoubleValue createDoubleValue()
ValueFactory
createDoubleValue
in interface ValueFactory
createDoubleValue
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 ParticularValueFactory
@Deprecated public ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object value)
ParticularValueFactory.createReferenceValue(Clazz, boolean, boolean,
AnalyzedObject)
.createReferenceValue
in interface ValueFactory
createReferenceValue
in class ParticularValueFactory
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 ParticularValueFactory
@Deprecated public ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Clazz creationClass, Method creationMethod, int creationOffset, java.lang.Object value)
ParticularValueFactory.createReferenceValue(Clazz, boolean, boolean,
CodeLocation, AnalyzedObject)
createReferenceValue
in interface ValueFactory
createReferenceValue
in class ParticularValueFactory
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 ParticularValueFactory
@Deprecated public ReferenceValue createReferenceValueForId(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object id, java.lang.Object value)
ParticularValueFactory.createReferenceValueForId(Clazz, boolean,
boolean, Object, AnalyzedObject)
.createReferenceValueForId
in interface ValueFactory
createReferenceValueForId
in class ParticularValueFactory
public ReferenceValue createArrayReferenceValue(java.lang.String type, Clazz referencedClass, IntegerValue arrayLength)
ValueFactory
createArrayReferenceValue
in interface ValueFactory
createArrayReferenceValue
in class ParticularValueFactory
public static int generateReferenceId()