Package proguard.evaluation.value
Class UnknownReferenceValue
java.lang.Object
proguard.evaluation.value.Value
proguard.evaluation.value.Category1Value
proguard.evaluation.value.ReferenceValue
proguard.evaluation.value.UnknownReferenceValue
ReferenceValue that is unknown.-
Field Summary
Fields 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
Constructors -
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.generalize(ReferenceValue other) Returns the generalization of this ReferenceValue and the given other ReferenceValue.Returns the class that is referenced by the type.getType()Returns the type.intinstanceOf(String otherType, Clazz otherReferencedClass) Returns whether the type is an instance of the given type.final StringReturns the internal type of this Value.intisNull()Returns whether this ReferenceValue isnull.booleanReturns whether this Value represents a single particular (known) value.booleanReturns whether the actual type of this ReferenceValue may be an extension of its type.toString()Methods inherited from class proguard.evaluation.value.ReferenceValue
arrayLength, arrayStore, computationalType, doubleArrayLoad, equal, equal, equal, equal, equal, equal, equal, equal, equal, equals, floatArrayLoad, generalize, generalize, generalize, generalize, generalize, generalize, generalize, generalize, generalize, generalize, getValue, hashCode, integerArrayLoad, isNotNull, longArrayLoad, notEqual, referenceArrayLoad, referenceValue, valueMethods inherited from class proguard.evaluation.value.Category1Value
category1Value, isCategory2Methods inherited from class proguard.evaluation.value.Value
category2Value, copyIfMutable, doubleValue, floatValue, instructionOffsetValue, integerValue, isSpecific, longValue
-
Constructor Details
-
UnknownReferenceValue
public UnknownReferenceValue()
-
-
Method Details
-
getType
Description copied from class:ReferenceValueReturns the type.- Specified by:
getTypein classReferenceValue
-
getReferencedClass
Description copied from class:ReferenceValueReturns the class that is referenced by the type.- Specified by:
getReferencedClassin classReferenceValue
-
mayBeExtension
public boolean mayBeExtension()Description copied from class:ReferenceValueReturns whether the actual type of this ReferenceValue may be an extension of its type.- Specified by:
mayBeExtensionin classReferenceValue
-
isNull
public int isNull()Description copied from class:ReferenceValueReturns whether this ReferenceValue isnull.- Specified by:
isNullin classReferenceValue- Returns:
NEVER,MAYBE, orALWAYS.
-
instanceOf
Description copied from class:ReferenceValueReturns whether the type is an instance of the given type.- Specified by:
instanceOfin classReferenceValue
-
cast
public ReferenceValue cast(String type, Clazz referencedClass, ValueFactory valueFactory, boolean alwaysCast) Description copied from class:ReferenceValueReturns this ReferenceValue, cast to the given type.- Specified by:
castin classReferenceValue
-
generalize
Description copied from class:ReferenceValueReturns the generalization of this ReferenceValue and the given other ReferenceValue.- Specified by:
generalizein classReferenceValue
-
equal
Description copied from class:ReferenceValueReturns whether this ReferenceValue is equal to the given other ReferenceValue.- Specified by:
equalin classReferenceValue- Returns:
NEVER,MAYBE, orALWAYS.
-
isParticular
public boolean isParticular()Description copied from class:ValueReturns whether this Value represents a single particular (known) value.- Overrides:
isParticularin classValue
-
internalType
Description copied from class:ValueReturns the internal type of this Value.- Specified by:
internalTypein classValue- Returns:
TypeConstants.BOOLEAN,TypeConstants.BYTE,TypeConstants.CHAR,TypeConstants.SHORT,TypeConstants.INT,TypeConstants.LONG,TypeConstants.FLOAT,TypeConstants.DOUBLE,TypeConstants.CLASS_START ... TypeConstants.CLASS_END, or an array type containing any of these types (always as String).
-
toString
- Overrides:
toStringin classReferenceValue
-