Package proguard.evaluation.value
Class PrimitiveTypedReferenceValueFactory
- java.lang.Object
-
- proguard.evaluation.value.BasicValueFactory
-
- proguard.evaluation.value.PrimitiveTypedReferenceValueFactory
-
- All Implemented Interfaces:
ValueFactory
public class PrimitiveTypedReferenceValueFactory extends BasicValueFactory
This class provides methods to create and reuse Value instances. ItsReferenceValue
instances have types if they represent primitive arrays.
-
-
Field Summary
-
Fields inherited from class proguard.evaluation.value.BasicValueFactory
DOUBLE_VALUE, FLOAT_VALUE, INTEGER_VALUE, LONG_VALUE, REFERENCE_VALUE, UNKNOWN_VALUE
-
-
Constructor Summary
Constructors Constructor Description PrimitiveTypedReferenceValueFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull)
Creates a new ReferenceValue that represents the given type.ReferenceValue
createReferenceValueNull()
Creates a new ReferenceValue that representsnull
.-
Methods inherited from class proguard.evaluation.value.BasicValueFactory
checkCreationLocation, checkReferenceValue, createArrayReferenceValue, createDoubleValue, createDoubleValue, createFloatValue, createFloatValue, createIntegerValue, createIntegerValue, createIntegerValue, createLongValue, createLongValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValueForId, createReferenceValueForId, createReferenceValueForId, createValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface proguard.evaluation.value.ValueFactory
createReferenceValue, createReferenceValue, createReferenceValue
-
-
-
-
Method Detail
-
createReferenceValueNull
public ReferenceValue createReferenceValueNull()
Description copied from interface:ValueFactory
Creates a new ReferenceValue that representsnull
.- Specified by:
createReferenceValueNull
in interfaceValueFactory
- Overrides:
createReferenceValueNull
in classBasicValueFactory
-
createReferenceValue
public ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull)
Description copied from interface:ValueFactory
Creates a new ReferenceValue that represents the given type. The type must be an internal class name or an array type. If the type isnull
, the ReferenceValue representsnull
.- Specified by:
createReferenceValue
in interfaceValueFactory
- Overrides:
createReferenceValue
in classBasicValueFactory
-
createArrayReferenceValue
public ReferenceValue createArrayReferenceValue(java.lang.String type, Clazz referencedClass, IntegerValue arrayLength)
Description copied from interface:ValueFactory
Creates a new ReferenceValue that represents a non-null array with elements of the given type, with the given length.- Specified by:
createArrayReferenceValue
in interfaceValueFactory
- Overrides:
createArrayReferenceValue
in classBasicValueFactory
-
-