|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.evaluation.value.ValueFactory
public class ValueFactory
This class provides methods to create and reuse Value objects.
| Constructor Summary | |
|---|---|
ValueFactory()
|
|
| Method Summary | |
|---|---|
ReferenceValue |
createArrayReferenceValue(java.lang.String type,
Clazz referencedClass,
IntegerValue arrayLength)
Creates a new ReferenceValue for arrays of the given type and length. |
ReferenceValue |
createArrayReferenceValue(java.lang.String type,
Clazz referencedClass,
IntegerValue arrayLength,
Value elementValue)
Creates a new ReferenceValue for arrays of the given type and length, containing the given element. |
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(java.lang.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(java.lang.String type,
Clazz referencedClass,
boolean mayBeNull)
Creates a new Value of the given type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueFactory()
| Method Detail |
|---|
public Value createValue(java.lang.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(java.lang.String type,
Clazz referencedClass,
boolean mayBeNull)
null,
the ReferenceValue represents null.
public ReferenceValue createArrayReferenceValue(java.lang.String type,
Clazz referencedClass,
IntegerValue arrayLength)
public ReferenceValue createArrayReferenceValue(java.lang.String type,
Clazz referencedClass,
IntegerValue arrayLength,
Value elementValue)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||