Package proguard.evaluation.value
Class TracingValue
java.lang.Object
proguard.evaluation.value.Value
proguard.evaluation.value.TracingValue
Representation of a value that has been tagged with a sticky trace value.
-
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
ConstructorsConstructorDescriptionTracingValue(Value traceValue, Value value) Creates a new TracingValue with the given trace value and value. -
Method Summary
Modifier and TypeMethodDescriptionReturns this Value as a Category1Value.Returns this Value as a Category2Value.final intReturns the computational type of this Value.Returns this Value as a DoubleValue.booleanReturns this Value as a FloatValue.final TracingValuegeneralize(TracingValue other) Returns the generalization of this TracingValue and the given other TracingValue.final Valuegeneralize(Value other) Returns the generalization of this Value and the given other Value.inthashCode()final InstructionOffsetValueReturns this Value as an InstructionOffsetValue.Returns this Value as an IntegerValue.final StringReturns the internal type of this Value.booleanReturns whether the computational type of this Value is a category 2 type.booleanReturns whether this Value represents a single particular (known) value.booleanReturns whether this Value represents a single specific (but possibly unknown) value.Returns this Value as a LongValue.Returns this Value as a ReferenceValue.toString()Methods inherited from class proguard.evaluation.value.Value
copyIfMutable
-
Constructor Details
-
TracingValue
Creates a new TracingValue with the given trace value and value.
-
-
Method Details
-
generalize
Returns the generalization of this TracingValue and the given other TracingValue. -
category1Value
Description copied from class:ValueReturns this Value as a Category1Value.- Overrides:
category1Valuein classValue
-
category2Value
Description copied from class:ValueReturns this Value as a Category2Value.- Overrides:
category2Valuein classValue
-
integerValue
Description copied from class:ValueReturns this Value as an IntegerValue.- Overrides:
integerValuein classValue
-
longValue
Description copied from class:ValueReturns this Value as a LongValue. -
floatValue
Description copied from class:ValueReturns this Value as a FloatValue.- Overrides:
floatValuein classValue
-
doubleValue
Description copied from class:ValueReturns this Value as a DoubleValue.- Overrides:
doubleValuein classValue
-
referenceValue
Description copied from class:ValueReturns this Value as a ReferenceValue.- Overrides:
referenceValuein classValue
-
instructionOffsetValue
Description copied from class:ValueReturns this Value as an InstructionOffsetValue.- Overrides:
instructionOffsetValuein classValue
-
isSpecific
public boolean isSpecific()Description copied from class:ValueReturns whether this Value represents a single specific (but possibly unknown) value.- Overrides:
isSpecificin classValue
-
isParticular
public boolean isParticular()Description copied from class:ValueReturns whether this Value represents a single particular (known) value.- Overrides:
isParticularin classValue
-
generalize
Description copied from class:ValueReturns the generalization of this Value and the given other Value.- Specified by:
generalizein classValue
-
isCategory2
public boolean isCategory2()Description copied from class:ValueReturns whether the computational type of this Value is a category 2 type. This means that it takes up the space of two category 1 types on the stack, for instance.- Specified by:
isCategory2in classValue
-
computationalType
public final int computationalType()Description copied from class:ValueReturns the computational type of this Value.- Specified by:
computationalTypein classValue- Returns:
TYPE_INTEGER,TYPE_LONG,TYPE_FLOAT,TYPE_DOUBLE,TYPE_REFERENCE, orTYPE_INSTRUCTION_OFFSET.
-
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).
-
equals
-
hashCode
public int hashCode() -
toString
-