public class ValueFactory extends Object
| Constructor and Description |
|---|
ValueFactory() |
| Modifier and Type | Method and Description |
|---|---|
ReferenceValue |
createArrayReferenceValue(String type,
Clazz referencedClass,
IntegerValue arrayLength)
Creates a new ReferenceValue for arrays of the given type and length.
|
DoubleValue |
createDoubleValue()
Creates a new DoubleValue with an undefined value.
|
DoubleValue |
createDoubleValue(double value)
Creates a new DoubleValue with a given particular value.
|
FloatValue |
createFloatValue()
Creates a new FloatValue with an undefined value.
|
FloatValue |
createFloatValue(float value)
Creates a new FloatValue with a given particular value.
|
IntegerValue |
createIntegerValue()
Creates a new IntegerValue with an undefined value.
|
IntegerValue |
createIntegerValue(int value)
Creates a new IntegerValue with a given particular value.
|
LongValue |
createLongValue()
Creates a new LongValue with an undefined value.
|
LongValue |
createLongValue(long value)
Creates a new LongValue with a given particular value.
|
ReferenceValue |
createReferenceValue(String type,
Clazz referencedClass,
boolean mayBeNull)
Creates a new ReferenceValue of the given type.
|
ReferenceValue |
createReferenceValueNull()
Creates a new ReferenceValue that represents
null. |
Value |
createValue(String type,
Clazz referencedClass,
boolean mayBeNull)
Creates a new Value of the given type.
|
public Value createValue(String type, Clazz referencedClass, boolean mayBeNull)
public IntegerValue createIntegerValue()
public IntegerValue createIntegerValue(int value)
public LongValue createLongValue()
public LongValue createLongValue(long value)
public FloatValue createFloatValue()
public FloatValue createFloatValue(float value)
public DoubleValue createDoubleValue()
public DoubleValue createDoubleValue(double value)
public ReferenceValue createReferenceValueNull()
null.public ReferenceValue createReferenceValue(String type, Clazz referencedClass, boolean mayBeNull)
null,
the ReferenceValue represents null.public ReferenceValue createArrayReferenceValue(String type, Clazz referencedClass, IntegerValue arrayLength)
Copyright © 2015. All Rights Reserved.