| java.lang.Object proguard.evaluation.value.ValueFactory
All known Subclasses: proguard.evaluation.value.SpecificValueFactory,
ValueFactory | public class ValueFactory (Code) | | This class provides methods to create and reuse Value objects.
author: Eric Lafortune |
Method Summary | |
public ReferenceValue | createArrayReferenceValue(String type, Clazz referencedClass, IntegerValue arrayLength) Creates a new ReferenceValue for arrays of the given type and length. | public ReferenceValue | createArrayReferenceValue(String type, Clazz referencedClass, IntegerValue arrayLength, Value elementValue) Creates a new ReferenceValue for arrays of the given type and length,
containing the given element. | public DoubleValue | createDoubleValue() Creates a new DoubleValue with an undefined value. | public DoubleValue | createDoubleValue(double value) Creates a new DoubleValue with a given specific value. | public FloatValue | createFloatValue() Creates a new FloatValue with an undefined value. | public FloatValue | createFloatValue(float value) Creates a new FloatValue with a given specific value. | public IntegerValue | createIntegerValue() Creates a new IntegerValue with an undefined value. | public IntegerValue | createIntegerValue(int value) Creates a new IntegerValue with a given specific value. | public LongValue | createLongValue() Creates a new LongValue with an undefined value. | public LongValue | createLongValue(long value) Creates a new LongValue with a given specific value. | public ReferenceValue | createReferenceValue(String type, Clazz referencedClass, boolean mayBeNull) Creates a new ReferenceValue of the given type. | public ReferenceValue | createReferenceValueNull() Creates a new ReferenceValue that represents null . | public Value | createValue(String type, Clazz referencedClass, boolean mayBeNull) Creates a new undefined Value of the given type. |
REFERENCE_VALUE_JAVA_LANG_OBJECT_MAYBE_NULL | final static ReferenceValue REFERENCE_VALUE_JAVA_LANG_OBJECT_MAYBE_NULL(Code) | | |
REFERENCE_VALUE_JAVA_LANG_OBJECT_NOT_NULL | final static ReferenceValue REFERENCE_VALUE_JAVA_LANG_OBJECT_NOT_NULL(Code) | | |
createArrayReferenceValue | public ReferenceValue createArrayReferenceValue(String type, Clazz referencedClass, IntegerValue arrayLength)(Code) | | Creates a new ReferenceValue for arrays of the given type and length.
The type must be a fully specified internal type for primitives, classes,
or arrays.
|
createArrayReferenceValue | public ReferenceValue createArrayReferenceValue(String type, Clazz referencedClass, IntegerValue arrayLength, Value elementValue)(Code) | | Creates a new ReferenceValue for arrays of the given type and length,
containing the given element. The type must be a fully specified internal
type for primitives, classes, or arrays.
|
createDoubleValue | public DoubleValue createDoubleValue()(Code) | | Creates a new DoubleValue with an undefined value.
|
createDoubleValue | public DoubleValue createDoubleValue(double value)(Code) | | Creates a new DoubleValue with a given specific value.
|
createFloatValue | public FloatValue createFloatValue()(Code) | | Creates a new FloatValue with an undefined value.
|
createFloatValue | public FloatValue createFloatValue(float value)(Code) | | Creates a new FloatValue with a given specific value.
|
createIntegerValue | public IntegerValue createIntegerValue()(Code) | | Creates a new IntegerValue with an undefined value.
|
createIntegerValue | public IntegerValue createIntegerValue(int value)(Code) | | Creates a new IntegerValue with a given specific value.
|
createLongValue | public LongValue createLongValue()(Code) | | Creates a new LongValue with an undefined value.
|
createLongValue | public LongValue createLongValue(long value)(Code) | | Creates a new LongValue with a given specific value.
|
createReferenceValue | public ReferenceValue createReferenceValue(String type, Clazz referencedClass, boolean mayBeNull)(Code) | | Creates a new ReferenceValue of the given type. The type must be an
internal class name or an array type. If the type is null ,
the ReferenceValue represents null .
|
createReferenceValueNull | public ReferenceValue createReferenceValueNull()(Code) | | Creates a new ReferenceValue that represents null .
|
createValue | public Value createValue(String type, Clazz referencedClass, boolean mayBeNull)(Code) | | Creates a new undefined Value of the given type.
The type must be a fully specified internal type for primitives, classes,
or arrays.
|
|
|