|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.util.SimplifiedVisitor
proguard.evaluation.BasicInvocationUnit
proguard.optimize.evaluation.StoringInvocationUnit
public class StoringInvocationUnit
This InvocationUbit stores parameter values and return values with the methods that are invoked.
LoadingInvocationUnit| Field Summary |
|---|
| Fields inherited from class proguard.evaluation.BasicInvocationUnit |
|---|
valueFactory |
| Constructor Summary | |
|---|---|
StoringInvocationUnit(ValueFactory valueFactory)
Creates a new StoringInvocationUnit with the given value factory. |
|
StoringInvocationUnit(ValueFactory valueFactory,
boolean storeFieldValues,
boolean storeMethodParameterValues,
boolean storeMethodReturnValues)
Creates a new StoringInvocationUnit with the given value factory, for storing the specified values. |
|
| Method Summary | |
|---|---|
static ReferenceValue |
getFieldClassValue(Field field)
|
static Value |
getFieldValue(Field field)
|
static Value |
getMethodParameterValue(Method method,
int parameterIndex)
|
static Value |
getMethodReturnValue(Method method)
|
protected void |
setFieldClassValue(Clazz clazz,
RefConstant refConstant,
ReferenceValue value)
Sets the class through which the specified field is accessed. |
protected void |
setFieldValue(Clazz clazz,
RefConstant refConstant,
Value value)
Sets the value of the specified field. |
protected void |
setMethodParameterValue(Clazz clazz,
RefConstant refConstant,
int parameterIndex,
Value value)
Sets the value of the specified method parameter. |
protected void |
setMethodReturnValue(Clazz clazz,
Method method,
Value value)
Sets the return value of the specified method. |
| Methods inherited from class proguard.evaluation.BasicInvocationUnit |
|---|
enterMethod, exitMethod, getFieldClassValue, getFieldValue, getMethodParameterValue, getMethodReturnValue, invokeMember, visitAnyMethodrefConstant, visitFieldrefConstant, visitLibraryField, visitLibraryMethod, visitProgramField, visitProgramMethod |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface proguard.classfile.constant.visitor.ConstantVisitor |
|---|
visitClassConstant, visitDoubleConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitLongConstant, visitMethodrefConstant, visitNameAndTypeConstant, visitStringConstant, visitUtf8Constant |
| Constructor Detail |
|---|
public StoringInvocationUnit(ValueFactory valueFactory)
public StoringInvocationUnit(ValueFactory valueFactory,
boolean storeFieldValues,
boolean storeMethodParameterValues,
boolean storeMethodReturnValues)
| Method Detail |
|---|
protected void setFieldClassValue(Clazz clazz,
RefConstant refConstant,
ReferenceValue value)
BasicInvocationUnit
setFieldClassValue in class BasicInvocationUnit
protected void setFieldValue(Clazz clazz,
RefConstant refConstant,
Value value)
BasicInvocationUnit
setFieldValue in class BasicInvocationUnit
protected void setMethodParameterValue(Clazz clazz,
RefConstant refConstant,
int parameterIndex,
Value value)
BasicInvocationUnit
setMethodParameterValue in class BasicInvocationUnit
protected void setMethodReturnValue(Clazz clazz,
Method method,
Value value)
BasicInvocationUnit
setMethodReturnValue in class BasicInvocationUnitpublic static ReferenceValue getFieldClassValue(Field field)
public static Value getFieldValue(Field field)
public static Value getMethodParameterValue(Method method,
int parameterIndex)
public static Value getMethodReturnValue(Method method)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||