| Package | Description |
|---|---|
| proguard.evaluation | |
| proguard.evaluation.value |
This package contains classes that represent partial evaluation values.
|
| proguard.optimize.evaluation |
This package contains visitors that perform partial evaluation and subsequent
optimizations on byte code.
|
| proguard.optimize.info |
This package contains classes to collect additional information about classes
and class members, which can then be used for optimization.
|
| Modifier and Type | Field and Description |
|---|---|
protected Value |
ConstantValueFactory.value |
protected Value[] |
Stack.values |
protected Value[] |
Variables.values |
| Modifier and Type | Method and Description |
|---|---|
Value |
ConstantValueFactory.constantValue(Clazz clazz,
int constantIndex)
Returns the Value of the constant pool element at the given index.
|
Value |
Stack.getBottom(int index)
Gets the specified Value from the stack, without disturbing it.
|
Value |
TracedStack.getBottomActualProducerValue(int index)
Gets the specified actual producer Value from the stack, ignoring
dup/swap instructions, without disturbing it.
|
Value |
TracedStack.getBottomProducerValue(int index)
Gets the specified producer Value from the stack, without disturbing it.
|
protected Value |
BasicInvocationUnit.getFieldClassValue(Clazz clazz,
RefConstant refConstant,
String type)
Returns the class though which the specified field is accessed.
|
protected Value |
BasicInvocationUnit.getFieldValue(Clazz clazz,
RefConstant refConstant,
String type)
Returns the value of the specified field.
|
protected Value |
BasicInvocationUnit.getMethodParameterValue(Clazz clazz,
Method method,
int parameterIndex,
String type,
Clazz referencedClass)
Returns the value of the specified method parameter.
|
protected Value |
BasicInvocationUnit.getMethodReturnValue(Clazz clazz,
InvokeDynamicConstant invokeDynamicConstant,
String type)
Returns the return value of the specified method.
|
protected Value |
BasicInvocationUnit.getMethodReturnValue(Clazz clazz,
RefConstant refConstant,
String type)
Returns the return value of the specified method.
|
Value |
TracedVariables.getProducerValue(int index)
Gets the producer Value for the specified variable, without disturbing it.
|
Value |
Stack.getTop(int index)
Gets the specified Value from the stack, without disturbing it.
|
Value |
TracedStack.getTopActualProducerValue(int index)
Gets the specified actual producer Value from the stack, ignoring
dup/swap instructions, without disturbing it.
|
Value |
TracedStack.getTopProducerValue(int index)
Gets the specified producer Value from the stack, without disturbing it.
|
Value |
Variables.getValue(int index)
Gets the Value of the variable with the given index, without disturbing it.
|
Value |
Variables.load(int index)
Loads the Value from the variable with the given index.
|
Value |
Stack.pop()
Pops the top Value from the stack.
|
Value |
TracedStack.pop() |
| Modifier and Type | Method and Description |
|---|---|
void |
InvocationUnit.exitMethod(Clazz clazz,
Method method,
Value returnValue)
Exits the given method with the given return value.
|
void |
BasicInvocationUnit.exitMethod(Clazz clazz,
Method method,
Value returnValue) |
void |
Stack.push(Value value)
Pushes the given Value onto the stack.
|
void |
TracedStack.push(Value value) |
void |
Stack.setBottom(int index,
Value value)
Sets the specified Value on the stack, without disturbing it.
|
protected void |
BasicInvocationUnit.setFieldValue(Clazz clazz,
RefConstant refConstant,
Value value)
Sets the value of the specified field.
|
protected void |
BasicInvocationUnit.setMethodParameterValue(Clazz clazz,
RefConstant refConstant,
int parameterIndex,
Value value)
Sets the value of the specified method parameter.
|
protected void |
BasicInvocationUnit.setMethodReturnValue(Clazz clazz,
Method method,
Value value)
Sets the return value of the specified method.
|
void |
TracedVariables.setProducerValue(int index,
Value value)
Sets the given producer Value for the specified variable, without
disturbing it.
|
void |
TracedStack.setProducerValue(Value producerValue)
Sets the Value that will be stored along with all push and pop
instructions.
|
void |
TracedVariables.setProducerValue(Value producerValue)
Sets the Value that will be stored along with all store instructions.
|
void |
Stack.setTop(int index,
Value value)
Sets the specified Value on the stack, without disturbing it.
|
void |
TracedVariables.store(int index,
Value value) |
void |
Variables.store(int index,
Value value)
Stores the given Value at the given variable index.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Category1Value
This abstract class represents a partially evaluated Category 1 value.
|
class |
Category2Value
This abstract class represents a partially evaluated Category 2 value.
|
class |
DoubleValue
This class represents a partially evaluated double value.
|
class |
FloatValue
This class represents a partially evaluated float value.
|
class |
InstructionOffsetValue
This class represents a partially evaluated instruction offset.
|
class |
IntegerValue
This class represents a partially evaluated integer value.
|
class |
LongValue
This class represents a partially evaluated long value.
|
class |
ReferenceValue
This class represents a partially evaluated reference value.
|
class |
TopValue
This class represents a partially evaluated top value.
|
class |
TypedReferenceValue
This ReferenceValue represents a partially evaluated reference value.
|
class |
UnknownDoubleValue
This class represents a partially evaluated double value.
|
class |
UnknownFloatValue
This class represents a partially evaluated float value.
|
class |
UnknownIntegerValue
This class represents a partially evaluated integer value.
|
class |
UnknownLongValue
This class represents a partially evaluated long value.
|
| Modifier and Type | Method and Description |
|---|---|
Value |
InitialValueFactory.createValue(String type)
Creates an initial value (0, 0L, 0.0f, 0.0, null) of the given type.
|
Value |
ValueFactory.createValue(String type,
Clazz referencedClass,
boolean mayBeNull)
Creates a new Value of the given type.
|
Value |
InstructionOffsetValue.generalize(InstructionOffsetValue other)
Returns the generalization of this InstructionOffsetValue and the given
other InstructionOffsetValue.
|
Value |
FloatValue.generalize(Value other) |
Value |
InstructionOffsetValue.generalize(Value other) |
Value |
DoubleValue.generalize(Value other) |
Value |
TopValue.generalize(Value other) |
Value |
ReferenceValue.generalize(Value other) |
abstract Value |
Value.generalize(Value other)
Returns the generalization of this Value and the given other Value.
|
Value |
IntegerValue.generalize(Value other) |
Value |
LongValue.generalize(Value other) |
| Modifier and Type | Method and Description |
|---|---|
void |
ReferenceValue.arrayStore(IntegerValue indexValue,
Value value)
Stores the given value at the given index in the given array, assuming
this type is an array.
|
Value |
FloatValue.generalize(Value other) |
Value |
InstructionOffsetValue.generalize(Value other) |
Value |
DoubleValue.generalize(Value other) |
Value |
TopValue.generalize(Value other) |
Value |
ReferenceValue.generalize(Value other) |
abstract Value |
Value.generalize(Value other)
Returns the generalization of this Value and the given other Value.
|
Value |
IntegerValue.generalize(Value other) |
Value |
LongValue.generalize(Value other) |
| Modifier and Type | Method and Description |
|---|---|
protected Value |
LoadingInvocationUnit.getFieldClassValue(Clazz clazz,
RefConstant refConstant,
String type) |
protected Value |
LoadingInvocationUnit.getFieldValue(Clazz clazz,
RefConstant refConstant,
String type) |
static Value |
StoringInvocationUnit.getFieldValue(Field field) |
protected Value |
LoadingInvocationUnit.getMethodParameterValue(Clazz clazz,
Method method,
int parameterIndex,
String type,
Clazz referencedClass) |
static Value |
StoringInvocationUnit.getMethodParameterValue(Method method,
int parameterIndex) |
protected Value |
LoadingInvocationUnit.getMethodReturnValue(Clazz clazz,
RefConstant refConstant,
String type) |
static Value |
StoringInvocationUnit.getMethodReturnValue(Method method) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
StoringInvocationUnit.setFieldValue(Clazz clazz,
RefConstant refConstant,
Value value) |
protected void |
StoringInvocationUnit.setMethodParameterValue(Clazz clazz,
RefConstant refConstant,
int parameterIndex,
Value value) |
protected void |
StoringInvocationUnit.setMethodReturnValue(Clazz clazz,
Method method,
Value value) |
| Modifier and Type | Method and Description |
|---|---|
Value |
MethodOptimizationInfo.getParameter(int parameterIndex) |
Value |
MethodOptimizationInfo.getReturnValue() |
Value |
FieldOptimizationInfo.getValue() |
| Modifier and Type | Method and Description |
|---|---|
void |
MethodOptimizationInfo.generalizeParameter(int parameterIndex,
Value parameter) |
void |
MethodOptimizationInfo.generalizeReturnValue(Value returnValue) |
void |
FieldOptimizationInfo.generalizeValue(Value value) |
void |
MethodOptimizationInfo.setReturnValue(Value returnValue) |
Copyright © 2015. All Rights Reserved.