类 ParticularValueFactory
- java.lang.Object
-
- proguard.evaluation.value.BasicValueFactory
-
- proguard.evaluation.value.ParticularValueFactory
-
- 所有已实现的接口:
ValueFactory
public class ParticularValueFactory extends BasicValueFactory implements ValueFactory
This class provides methods to create and reuse Value instances that have particular values, whenever they are known.
-
-
字段概要
字段 修饰符和类型 字段 说明 protected ValueFactoryreferenceValueFactory-
从类继承的字段 proguard.evaluation.value.BasicValueFactory
DOUBLE_VALUE, FLOAT_VALUE, INTEGER_VALUE, LONG_VALUE, REFERENCE_VALUE, UNKNOWN_VALUE
-
-
构造器概要
构造器 构造器 说明 ParticularValueFactory()Creates a new ParticularValueFactory which does not keep track of particular references.ParticularValueFactory(ValueFactory referenceValueFactory)Creates a new ParticularValueFactory, which uses the given valuefactory for both array and non-array reference construction.ParticularValueFactory(ValueFactory arrayReferenceValueFactory, ValueFactory referenceValueFactory)Creates a new ParticularValueFactory.
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 ReferenceValuecreateArrayReferenceValue(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.ReferenceValuecreateArrayReferenceValue(java.lang.String type, Clazz referencedClass, IntegerValue arrayLength, java.lang.Object elementValues)Creates a new ReferenceValue that represents a non-null array with elements of the given type, with the given length and initial element values.DoubleValuecreateDoubleValue(double value)Creates a new DoubleValue with a given particular value.FloatValuecreateFloatValue(float value)Creates a new FloatValue with a given particular value.IntegerValuecreateIntegerValue(int value)Creates a new IntegerValue with a given particular value.LongValuecreateLongValue(long value)Creates a new LongValue with a given particular value.ReferenceValuecreateReferenceValue()Creates a new ReferenceValue of an undefined type.ReferenceValuecreateReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull)Creates a new ReferenceValue that represents the given type.ReferenceValuecreateReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object value)已过时。ReferenceValuecreateReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, CodeLocation creationLocation)Creates a new ReferenceValue that represents the given type, created at the specified code location.ReferenceValuecreateReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Clazz creationClass, Method creationMethod, int creationOffset)已过时。ReferenceValuecreateReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Clazz creationClass, Method creationMethod, int creationOffset, java.lang.Object value)已过时。ReferenceValuecreateReferenceValue(Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, @NotNull AnalyzedObject value)Creates a new ReferenceValue that represents the given type.ReferenceValuecreateReferenceValue(Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, CodeLocation creationLocation, @NotNull AnalyzedObject value)Creates a new ReferenceValue that represents the given type, created at the specified code location.ReferenceValuecreateReferenceValueForId(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object id)Creates a new ReferenceValue that represents the given type with a specified ID.ReferenceValuecreateReferenceValueForId(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object id, java.lang.Object value)已过时。ReferenceValuecreateReferenceValueForId(Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object id, @NotNull AnalyzedObject value)Creates a new ReferenceValue that represents the given type with a specified ID.ReferenceValuecreateReferenceValueNull()Creates a new ReferenceValue that representsnull.-
从类继承的方法 proguard.evaluation.value.BasicValueFactory
checkCreationLocation, checkReferenceValue, createDoubleValue, createFloatValue, createIntegerValue, createIntegerValue, createLongValue, createValue
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 proguard.evaluation.value.ValueFactory
createDoubleValue, createFloatValue, createIntegerValue, createIntegerValue, createLongValue, createReferenceValue, createReferenceValue, createReferenceValue, createValue
-
-
-
-
字段详细资料
-
referenceValueFactory
protected final ValueFactory referenceValueFactory
-
-
构造器详细资料
-
ParticularValueFactory
public ParticularValueFactory()
Creates a new ParticularValueFactory which does not keep track of particular references.
-
ParticularValueFactory
public ParticularValueFactory(ValueFactory referenceValueFactory)
Creates a new ParticularValueFactory, which uses the given valuefactory for both array and non-array reference construction.
-
ParticularValueFactory
public ParticularValueFactory(ValueFactory arrayReferenceValueFactory, ValueFactory referenceValueFactory)
Creates a new ParticularValueFactory.- 参数:
arrayReferenceValueFactory- the valuefactory to delegate new array references to.referenceValueFactory- the valuefactory to delegate new references to.
-
-
方法详细资料
-
createIntegerValue
public IntegerValue createIntegerValue(int value)
从接口复制的说明:ValueFactoryCreates a new IntegerValue with a given particular value.- 指定者:
createIntegerValue在接口中ValueFactory- 覆盖:
createIntegerValue在类中BasicValueFactory
-
createLongValue
public LongValue createLongValue(long value)
从接口复制的说明:ValueFactoryCreates a new LongValue with a given particular value.- 指定者:
createLongValue在接口中ValueFactory- 覆盖:
createLongValue在类中BasicValueFactory
-
createFloatValue
public FloatValue createFloatValue(float value)
从接口复制的说明:ValueFactoryCreates a new FloatValue with a given particular value.- 指定者:
createFloatValue在接口中ValueFactory- 覆盖:
createFloatValue在类中BasicValueFactory
-
createDoubleValue
public DoubleValue createDoubleValue(double value)
从接口复制的说明:ValueFactoryCreates a new DoubleValue with a given particular value.- 指定者:
createDoubleValue在接口中ValueFactory- 覆盖:
createDoubleValue在类中BasicValueFactory
-
createReferenceValue
public ReferenceValue createReferenceValue()
从接口复制的说明:ValueFactoryCreates a new ReferenceValue of an undefined type.- 指定者:
createReferenceValue在接口中ValueFactory- 覆盖:
createReferenceValue在类中BasicValueFactory
-
createReferenceValueNull
public ReferenceValue createReferenceValueNull()
从接口复制的说明:ValueFactoryCreates a new ReferenceValue that representsnull.- 指定者:
createReferenceValueNull在接口中ValueFactory- 覆盖:
createReferenceValueNull在类中BasicValueFactory
-
createReferenceValue
public ReferenceValue createReferenceValue(java.lang.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在类中BasicValueFactory
-
createReferenceValue
@Deprecated public ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object value)
已过时。Deprecated, usecreateReferenceValue(Clazz, boolean, boolean, AnalyzedObject).- 指定者:
createReferenceValue在接口中ValueFactory- 覆盖:
createReferenceValue在类中BasicValueFactory
-
createReferenceValue
public ReferenceValue createReferenceValue(Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, @NotNull @NotNull AnalyzedObject value)
从接口复制的说明: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.The object wrapped by
AnalyzedObjectis either the value of the reference during execution or aModelof it.- 指定者:
createReferenceValue在接口中ValueFactory- 覆盖:
createReferenceValue在类中BasicValueFactory
-
createReferenceValue
@Deprecated public ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Clazz creationClass, Method creationMethod, int creationOffset)
已过时。- 指定者:
createReferenceValue在接口中ValueFactory- 覆盖:
createReferenceValue在类中BasicValueFactory
-
createReferenceValue
public ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, CodeLocation creationLocation)
从接口复制的说明:ValueFactoryCreates a new ReferenceValue that represents the given type, created at the specified code location. The type must be an internal class name or an array type. If the type isnull, the ReferenceValue representsnull.- 指定者:
createReferenceValue在接口中ValueFactory- 覆盖:
createReferenceValue在类中BasicValueFactory
-
createReferenceValue
@Deprecated public ReferenceValue createReferenceValue(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, Clazz creationClass, Method creationMethod, int creationOffset, java.lang.Object value)
已过时。- 指定者:
createReferenceValue在接口中ValueFactory- 覆盖:
createReferenceValue在类中BasicValueFactory
-
createReferenceValue
public ReferenceValue createReferenceValue(Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, CodeLocation creationLocation, @NotNull @NotNull AnalyzedObject value)
从接口复制的说明:ValueFactoryCreates a new ReferenceValue that represents the given type, created at the specified code location. The type must be an internal class name or an array type. If the type isnull, the ReferenceValue representsnull.The object wrapped by
AnalyzedObjectis either the value of the reference during execution or aModelof it.- 指定者:
createReferenceValue在接口中ValueFactory- 覆盖:
createReferenceValue在类中BasicValueFactory
-
createReferenceValueForId
@Deprecated public ReferenceValue createReferenceValueForId(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object id, java.lang.Object value)
已过时。- 指定者:
createReferenceValueForId在接口中ValueFactory- 覆盖:
createReferenceValueForId在类中BasicValueFactory
-
createReferenceValueForId
public ReferenceValue createReferenceValueForId(Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.Object id, @NotNull @NotNull AnalyzedObject value)
从接口复制的说明: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.The object wrapped by
AnalyzedObjectis either the value of the reference during execution or aModelof it.- 指定者:
createReferenceValueForId在接口中ValueFactory- 覆盖:
createReferenceValueForId在类中BasicValueFactory
-
createReferenceValueForId
public ReferenceValue createReferenceValueForId(java.lang.String type, Clazz referencedClass, boolean mayBeExtension, boolean mayBeNull, java.lang.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在类中BasicValueFactory
-
createArrayReferenceValue
public ReferenceValue createArrayReferenceValue(java.lang.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在类中BasicValueFactory
-
createArrayReferenceValue
public ReferenceValue createArrayReferenceValue(java.lang.String type, Clazz referencedClass, IntegerValue arrayLength, java.lang.Object elementValues)
从接口复制的说明:ValueFactoryCreates a new ReferenceValue that represents a non-null array with elements of the given type, with the given length and initial element values.- 指定者:
createArrayReferenceValue在接口中ValueFactory- 覆盖:
createArrayReferenceValue在类中BasicValueFactory
-
-