类 ParticularReferenceValue
- java.lang.Object
-
- proguard.evaluation.value.Value
-
- proguard.evaluation.value.Category1Value
-
- proguard.evaluation.value.ReferenceValue
-
- proguard.evaluation.value.TypedReferenceValue
-
- proguard.evaluation.value.IdentifiedReferenceValue
-
- proguard.evaluation.value.ParticularReferenceValue
-
public class ParticularReferenceValue extends IdentifiedReferenceValue
ThisParticularReferenceValuerepresents a particular reference value, i.e. a reference with an associated value. E.g., a String with the value "HelloWorld".
-
-
字段概要
字段 修饰符和类型 字段 说明 static booleanARRAY_EXCEPTIONS-
从类继承的字段 proguard.evaluation.value.IdentifiedReferenceValue
id
-
从类继承的字段 proguard.evaluation.value.TypedReferenceValue
ALLOW_INCOMPLETE_CLASS_HIERARCHY, INCOMPLETE_CLASS_HIERARCHY, mayBeExtension, mayBeNull, referencedClass, type, WARN_INCOMPLETE_CLASS_HIERARCHY
-
从类继承的字段 proguard.evaluation.value.Value
ALWAYS, MAYBE, NEVER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INSTRUCTION_OFFSET, TYPE_INTEGER, TYPE_LONG, TYPE_REFERENCE, TYPE_TOP, TYPE_UNKNOWN
-
-
构造器概要
构造器 构造器 说明 ParticularReferenceValue(Clazz referencedClass, ValueFactory valueFactory, java.lang.Object referenceID, @NotNull AnalyzedObject value)Create a new Instance with the given type, the class it is referenced in, and its actual value.
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 ReferenceValuecast(java.lang.String type, Clazz referencedClass, ValueFactory valueFactory, boolean alwaysCast)Returns this ReferenceValue, cast to the given type.intequal(ReferenceValue other)Returns whether this ReferenceValue is equal to the given other ReferenceValue.booleanequals(java.lang.Object o)ReferenceValuegeneralize(ParticularReferenceValue other)Returns the generalization of this ReferenceValue and the given other ParticularReferenceValue.ReferenceValuegeneralize(ReferenceValue other)Returns the generalization of this ReferenceValue and the given other ReferenceValue.@NotNull AnalyzedObjectgetValue()inthashCode()intinstanceOf(java.lang.String otherType, Clazz otherReferencedClass)Returns whether the type is an instance of the given type.intisNull()Returns whether this ReferenceValue isnull.booleanisParticular()Returns whether this Value represents a single particular (known) value.java.lang.StringtoString()java.lang.Objectvalue()已过时。-
从类继承的方法 proguard.evaluation.value.IdentifiedReferenceValue
equal, generalize, isSpecific
-
从类继承的方法 proguard.evaluation.value.TypedReferenceValue
allowsIncompleteClassHierarchy, arrayStore, doubleArrayLoad, equal, floatArrayLoad, generalize, generalizeMayBeNull, getReferencedClass, getType, integerArrayLoad, internalType, longArrayLoad, mayBeExtension, referenceArrayLoad
-
从类继承的方法 proguard.evaluation.value.ReferenceValue
arrayLength, computationalType, equal, equal, equal, equal, equal, equal, equal, generalize, generalize, generalize, generalize, generalize, generalize, generalize, isNotNull, notEqual, referenceValue
-
从类继承的方法 proguard.evaluation.value.Category1Value
category1Value, isCategory2
-
从类继承的方法 proguard.evaluation.value.Value
category2Value, copyIfMutable, doubleValue, floatValue, instructionOffsetValue, integerValue, longValue
-
-
-
-
构造器详细资料
-
ParticularReferenceValue
public ParticularReferenceValue(Clazz referencedClass, ValueFactory valueFactory, java.lang.Object referenceID, @NotNull @NotNull AnalyzedObject value)
Create a new Instance with the given type, the class it is referenced in, and its actual value.
-
-
方法详细资料
-
value
@Deprecated public java.lang.Object value()
已过时。Deprecated, usegetValue().- 覆盖:
value在类中ReferenceValue
-
getValue
@NotNull public @NotNull AnalyzedObject getValue()
- 覆盖:
getValue在类中ReferenceValue
-
isParticular
public boolean isParticular()
从类复制的说明:ValueReturns whether this Value represents a single particular (known) value.- 覆盖:
isParticular在类中TypedReferenceValue
-
isNull
public int isNull()
从类复制的说明:ReferenceValueReturns whether this ReferenceValue isnull.- 覆盖:
isNull在类中TypedReferenceValue- 返回:
NEVER,MAYBE, orALWAYS.
-
instanceOf
public int instanceOf(java.lang.String otherType, Clazz otherReferencedClass)从类复制的说明:ReferenceValueReturns whether the type is an instance of the given type.- 覆盖:
instanceOf在类中TypedReferenceValue
-
cast
public ReferenceValue cast(java.lang.String type, Clazz referencedClass, ValueFactory valueFactory, boolean alwaysCast)
从类复制的说明:ReferenceValueReturns this ReferenceValue, cast to the given type.- 覆盖:
cast在类中TypedReferenceValue
-
generalize
public ReferenceValue generalize(ReferenceValue other)
从类复制的说明:ReferenceValueReturns the generalization of this ReferenceValue and the given other ReferenceValue.- 覆盖:
generalize在类中IdentifiedReferenceValue
-
generalize
public ReferenceValue generalize(ParticularReferenceValue other)
从类复制的说明:ReferenceValueReturns the generalization of this ReferenceValue and the given other ParticularReferenceValue.- 覆盖:
generalize在类中ReferenceValue
-
hashCode
public int hashCode()
- 覆盖:
hashCode在类中IdentifiedReferenceValue
-
equals
public boolean equals(java.lang.Object o)
- 覆盖:
equals在类中IdentifiedReferenceValue
-
equal
public int equal(ReferenceValue other)
从类复制的说明:ReferenceValueReturns whether this ReferenceValue is equal to the given other ReferenceValue.- 覆盖:
equal在类中IdentifiedReferenceValue- 返回:
NEVER,MAYBE, orALWAYS.
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中IdentifiedReferenceValue
-
-