类 IdentifiedValueFactory
java.lang.Object
proguard.evaluation.value.BasicValueFactory
proguard.evaluation.value.ParticularValueFactory
proguard.evaluation.value.IdentifiedValueFactory
- 所有已实现的接口:
ValueFactory
- 直接已知子类:
DetailedArrayValueFactory
This class provides methods to create and reuse Value instances that are identified by unique
integer IDs.
-
字段概要
从类继承的字段 proguard.evaluation.value.ParticularValueFactory
referenceValueFactory从类继承的字段 proguard.evaluation.value.BasicValueFactory
DOUBLE_VALUE, FLOAT_VALUE, INTEGER_VALUE, LONG_VALUE, REFERENCE_VALUE, UNKNOWN_VALUE -
构造器概要
构造器构造器说明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. -
方法概要
修饰符和类型方法说明createArrayReferenceValue(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.Creates a new DoubleValue with an undefined value.Creates a new FloatValue with an undefined value.Creates a new IntegerValue with an undefined value.Creates a new LongValue with an undefined value.createReferenceValue(String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull) Creates a new ReferenceValue that represents the given type.createReferenceValue(String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Object value) 已过时。createReferenceValue(String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Clazz creationClass, Method creationMethod, int creationOffset) 已过时。createReferenceValue(String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Clazz creationClass, Method creationMethod, int creationOffset, Object value) 已过时。createReferenceValueForId(String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Object id) Creates a new ReferenceValue that represents the given type with a specified ID.createReferenceValueForId(String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Object id, Object value) 已过时。static int从类继承的方法 proguard.evaluation.value.ParticularValueFactory
createArrayReferenceValue, createDoubleValue, createFloatValue, createIntegerValue, createLongValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValueForId, createReferenceValueNull从类继承的方法 proguard.evaluation.value.BasicValueFactory
checkCreationLocation, checkReferenceValue, createIntegerValue, createValue从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 proguard.evaluation.value.ValueFactory
createIntegerValue, createReferenceValue, createReferenceValue, createReferenceValue, createValue
-
构造器详细资料
-
IdentifiedValueFactory
public IdentifiedValueFactory()Creates a new IdentifiedValueFactory which does not keep track of particular references. -
IdentifiedValueFactory
Creates a new IdentifiedValueFactory, which uses the given valuefactory for both array and non-array reference construction. -
IdentifiedValueFactory
public IdentifiedValueFactory(ValueFactory arrayReferenceValueFactory, ValueFactory referenceValueFactory) Creates a new IdentifiedValueFactory.- 参数:
arrayReferenceValueFactory- the valuefactory to delegate new array references to.referenceValueFactory- the valuefactory to delegate new references to.
-
-
方法详细资料
-
createIntegerValue
从接口复制的说明:ValueFactoryCreates a new IntegerValue with an undefined value.- 指定者:
createIntegerValue在接口中ValueFactory- 覆盖:
createIntegerValue在类中BasicValueFactory
-
createLongValue
从接口复制的说明:ValueFactoryCreates a new LongValue with an undefined value.- 指定者:
createLongValue在接口中ValueFactory- 覆盖:
createLongValue在类中BasicValueFactory
-
createFloatValue
从接口复制的说明:ValueFactoryCreates a new FloatValue with an undefined value.- 指定者:
createFloatValue在接口中ValueFactory- 覆盖:
createFloatValue在类中BasicValueFactory
-
createDoubleValue
从接口复制的说明:ValueFactoryCreates a new DoubleValue with an undefined value.- 指定者:
createDoubleValue在接口中ValueFactory- 覆盖:
createDoubleValue在类中BasicValueFactory
-
createReferenceValue
public ReferenceValue createReferenceValue(String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull) 从接口复制的说明:ValueFactoryCreates 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.- 指定者:
createReferenceValue在接口中ValueFactory- 覆盖:
createReferenceValue在类中ParticularValueFactory
-
createReferenceValue
@Deprecated public ReferenceValue createReferenceValue(String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Object value) 已过时。Deprecated, useParticularValueFactory.createReferenceValue(Clazz, boolean, boolean, AnalyzedObject).- 指定者:
createReferenceValue在接口中ValueFactory- 覆盖:
createReferenceValue在类中ParticularValueFactory
-
createReferenceValue
@Deprecated public ReferenceValue createReferenceValue(String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Clazz creationClass, Method creationMethod, int creationOffset) 已过时。- 指定者:
createReferenceValue在接口中ValueFactory- 覆盖:
createReferenceValue在类中ParticularValueFactory
-
createReferenceValue
@Deprecated public ReferenceValue createReferenceValue(String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Clazz creationClass, Method creationMethod, int creationOffset, Object value) 已过时。Deprecated, useParticularValueFactory.createReferenceValue(Clazz, boolean, boolean, CodeLocation, AnalyzedObject)- 指定者:
createReferenceValue在接口中ValueFactory- 覆盖:
createReferenceValue在类中ParticularValueFactory
-
createReferenceValueForId
public ReferenceValue createReferenceValueForId(String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Object id) 从接口复制的说明:ValueFactoryCreates a new ReferenceValue that represents the given type with a specified ID. The type must be an internal class name or an array type. If the type isnull, the ReferenceValue representsnull.- 指定者:
createReferenceValueForId在接口中ValueFactory- 覆盖:
createReferenceValueForId在类中ParticularValueFactory
-
createReferenceValueForId
@Deprecated public ReferenceValue createReferenceValueForId(String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Object id, Object value) 已过时。Deprecated, useParticularValueFactory.createReferenceValueForId(Clazz, boolean, boolean, Object, AnalyzedObject).- 指定者:
createReferenceValueForId在接口中ValueFactory- 覆盖:
createReferenceValueForId在类中ParticularValueFactory
-
createArrayReferenceValue
public ReferenceValue createArrayReferenceValue(String type, Clazz referencedClass, IntegerValue arrayLength) 从接口复制的说明:ValueFactoryCreates a new ReferenceValue that represents a non-null array with elements of the given type, with the given length.- 指定者:
createArrayReferenceValue在接口中ValueFactory- 覆盖:
createArrayReferenceValue在类中ParticularValueFactory
-
generateReferenceId
public static int generateReferenceId()
-