Package proguard.evaluation.value
Class 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
This
ParticularReferenceValue represents a particular reference value, i.e. a reference
with an associated value. E.g., a String with the value "HelloWorld".-
Field Summary
FieldsFields inherited from class proguard.evaluation.value.IdentifiedReferenceValue
idFields inherited from class proguard.evaluation.value.TypedReferenceValue
ALLOW_INCOMPLETE_CLASS_HIERARCHY, INCOMPLETE_CLASS_HIERARCHY, mayBeExtension, mayBeNull, referencedClass, type, WARN_INCOMPLETE_CLASS_HIERARCHYFields inherited from class proguard.evaluation.value.Value
ALWAYS, MAYBE, NEVER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INSTRUCTION_OFFSET, TYPE_INTEGER, TYPE_LONG, TYPE_REFERENCE, TYPE_TOP, TYPE_UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionParticularReferenceValue(Clazz referencedClass, ValueFactory valueFactory, Object referenceID, @NotNull AnalyzedObject value) Create a new Instance with the given type, the class it is referenced in, and its actual value. -
Method Summary
Modifier and TypeMethodDescriptioncast(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.booleanReturns the generalization of this ReferenceValue and the given other ParticularReferenceValue.generalize(ReferenceValue other) Returns the generalization of this ReferenceValue and the given other ReferenceValue.@NotNull AnalyzedObjectgetValue()inthashCode()intinstanceOf(String otherType, Clazz otherReferencedClass) Returns whether the type is an instance of the given type.intisNull()Returns whether this ReferenceValue isnull.booleanReturns whether this Value represents a single particular (known) value.toString()value()Deprecated.Methods inherited from class proguard.evaluation.value.IdentifiedReferenceValue
equal, generalize, isSpecificMethods inherited from class proguard.evaluation.value.TypedReferenceValue
allowsIncompleteClassHierarchy, arrayStore, doubleArrayLoad, equal, floatArrayLoad, generalize, generalizeMayBeNull, getReferencedClass, getType, integerArrayLoad, internalType, longArrayLoad, mayBeExtension, referenceArrayLoadMethods inherited from class proguard.evaluation.value.ReferenceValue
arrayLength, computationalType, equal, equal, equal, equal, equal, equal, equal, generalize, generalize, generalize, generalize, generalize, generalize, generalize, isNotNull, notEqual, referenceValueMethods inherited from class proguard.evaluation.value.Category1Value
category1Value, isCategory2Methods inherited from class proguard.evaluation.value.Value
category2Value, copyIfMutable, doubleValue, floatValue, instructionOffsetValue, integerValue, longValue
-
Field Details
-
ARRAY_EXCEPTIONS
public static boolean ARRAY_EXCEPTIONS
-
-
Constructor Details
-
ParticularReferenceValue
public ParticularReferenceValue(Clazz referencedClass, ValueFactory valueFactory, Object referenceID, @NotNull @NotNull AnalyzedObject value) Create a new Instance with the given type, the class it is referenced in, and its actual value.
-
-
Method Details
-
value
Deprecated.Deprecated, usegetValue().- Overrides:
valuein classReferenceValue
-
getValue
- Overrides:
getValuein classReferenceValue
-
isParticular
public boolean isParticular()Description copied from class:ValueReturns whether this Value represents a single particular (known) value.- Overrides:
isParticularin classTypedReferenceValue
-
isNull
public int isNull()Description copied from class:ReferenceValueReturns whether this ReferenceValue isnull.- Overrides:
isNullin classTypedReferenceValue- Returns:
NEVER,MAYBE, orALWAYS.
-
instanceOf
Description copied from class:ReferenceValueReturns whether the type is an instance of the given type.- Overrides:
instanceOfin classTypedReferenceValue
-
cast
public ReferenceValue cast(String type, Clazz referencedClass, ValueFactory valueFactory, boolean alwaysCast) Description copied from class:ReferenceValueReturns this ReferenceValue, cast to the given type.- Overrides:
castin classTypedReferenceValue
-
generalize
Description copied from class:ReferenceValueReturns the generalization of this ReferenceValue and the given other ReferenceValue.- Overrides:
generalizein classIdentifiedReferenceValue
-
generalize
Description copied from class:ReferenceValueReturns the generalization of this ReferenceValue and the given other ParticularReferenceValue.- Overrides:
generalizein classReferenceValue
-
hashCode
public int hashCode()- Overrides:
hashCodein classIdentifiedReferenceValue
-
equals
- Overrides:
equalsin classIdentifiedReferenceValue
-
equal
Description copied from class:ReferenceValueReturns whether this ReferenceValue is equal to the given other ReferenceValue.- Overrides:
equalin classIdentifiedReferenceValue- Returns:
NEVER,MAYBE, orALWAYS.
-
toString
- Overrides:
toStringin classIdentifiedReferenceValue
-