类 BasicInvocationUnit
- java.lang.Object
-
- proguard.evaluation.SimplifiedInvocationUnit
-
- proguard.evaluation.BasicInvocationUnit
-
- 所有已实现的接口:
ConstantVisitor,MemberVisitor,ParameterVisitor,InvocationUnit
- 直接已知子类:
ExecutingInvocationUnit
public class BasicInvocationUnit extends SimplifiedInvocationUnit implements InvocationUnit, MemberVisitor
ThisInvocationUnitsets up the variables for entering a method, and it updates the stack for the invocation of a class member, using simple values.
-
-
字段概要
字段 修饰符和类型 字段 说明 protected ValueFactoryvalueFactory
-
构造器概要
构造器 构造器 说明 BasicInvocationUnit(ValueFactory valueFactory)Creates a new BasicInvocationUnit with the given value factory.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ValuegetExceptionValue(Clazz clazz, ClassConstant catchClassConstant)Returns the value of the specified exception.ValuegetFieldClassValue(Clazz clazz, FieldrefConstant fieldrefConstant, java.lang.String type)Returns the class though which the specified field is accessed.ValuegetFieldValue(Clazz clazz, FieldrefConstant fieldrefConstant, java.lang.String type)Returns the value of the specified field.ValuegetMethodParameterValue(Clazz clazz, Method method, int parameterIndex, java.lang.String type, Clazz referencedClass)Returns the value of the specified method parameter.ValuegetMethodReturnValue(Clazz clazz, AnyMethodrefConstant anyMethodrefConstant, java.lang.String type)Returns the return value of the specified method.ValuegetMethodReturnValue(Clazz clazz, InvokeDynamicConstant invokeDynamicConstant, java.lang.String type)Returns the return value of the specified method.voidsetFieldClassValue(Clazz clazz, FieldrefConstant fieldrefConstant, ReferenceValue value)Sets the class through which the specified field is accessed.voidsetFieldValue(Clazz clazz, FieldrefConstant fieldrefConstant, Value value)Sets the value of the specified field.voidsetMethodParameterValue(Clazz clazz, AnyMethodrefConstant anyMethodrefConstant, int parameterIndex, Value value)Sets the value of the specified method parameter.voidsetMethodReturnValue(Clazz clazz, Method method, Value value)Sets the return value of the specified method.voidvisitLibraryField(LibraryClass programClass, LibraryField libraryField)voidvisitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)voidvisitProgramField(ProgramClass programClass, ProgramField programField)voidvisitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)-
从类继承的方法 proguard.evaluation.SimplifiedInvocationUnit
enterExceptionHandler, enterMethod, exitMethod, invokeMember, methodMayHaveSideEffects, visitAnyMethodrefConstant, visitFieldrefConstant, visitInvokeDynamicConstant, visitParameter
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 proguard.classfile.constant.visitor.ConstantVisitor
visitAnyConstant, visitAnyRefConstant, visitClassConstant, visitDoubleConstant, visitDynamicConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitStringConstant, visitUtf8Constant
-
从接口继承的方法 proguard.evaluation.InvocationUnit
enterExceptionHandler, enterMethod, exitMethod, invokeMember
-
从接口继承的方法 proguard.classfile.visitor.MemberVisitor
visitAnyMember, visitLibraryMember, visitProgramMember
-
-
-
-
字段详细资料
-
valueFactory
protected final ValueFactory valueFactory
-
-
构造器详细资料
-
BasicInvocationUnit
public BasicInvocationUnit(ValueFactory valueFactory)
Creates a new BasicInvocationUnit with the given value factory.
-
-
方法详细资料
-
getExceptionValue
public Value getExceptionValue(Clazz clazz, ClassConstant catchClassConstant)
从类复制的说明:SimplifiedInvocationUnitReturns the value of the specified exception.
-
setFieldClassValue
public void setFieldClassValue(Clazz clazz, FieldrefConstant fieldrefConstant, ReferenceValue value)
从类复制的说明:SimplifiedInvocationUnitSets the class through which the specified field is accessed.
-
getFieldClassValue
public Value getFieldClassValue(Clazz clazz, FieldrefConstant fieldrefConstant, java.lang.String type)
从类复制的说明:SimplifiedInvocationUnitReturns the class though which the specified field is accessed.
-
setFieldValue
public void setFieldValue(Clazz clazz, FieldrefConstant fieldrefConstant, Value value)
从类复制的说明:SimplifiedInvocationUnitSets the value of the specified field.- 指定者:
setFieldValue在类中SimplifiedInvocationUnit
-
getFieldValue
public Value getFieldValue(Clazz clazz, FieldrefConstant fieldrefConstant, java.lang.String type)
从类复制的说明:SimplifiedInvocationUnitReturns the value of the specified field.- 指定者:
getFieldValue在类中SimplifiedInvocationUnit
-
setMethodParameterValue
public void setMethodParameterValue(Clazz clazz, AnyMethodrefConstant anyMethodrefConstant, int parameterIndex, Value value)
从类复制的说明:SimplifiedInvocationUnitSets the value of the specified method parameter.
-
getMethodParameterValue
public Value getMethodParameterValue(Clazz clazz, Method method, int parameterIndex, java.lang.String type, Clazz referencedClass)
从类复制的说明:SimplifiedInvocationUnitReturns the value of the specified method parameter.
-
setMethodReturnValue
public void setMethodReturnValue(Clazz clazz, Method method, Value value)
从类复制的说明:SimplifiedInvocationUnitSets the return value of the specified method.
-
getMethodReturnValue
public Value getMethodReturnValue(Clazz clazz, AnyMethodrefConstant anyMethodrefConstant, java.lang.String type)
从类复制的说明:SimplifiedInvocationUnitReturns the return value of the specified method.
-
getMethodReturnValue
public Value getMethodReturnValue(Clazz clazz, InvokeDynamicConstant invokeDynamicConstant, java.lang.String type)
Returns the return value of the specified method.
-
visitProgramField
public void visitProgramField(ProgramClass programClass, ProgramField programField)
- 指定者:
visitProgramField在接口中MemberVisitor
-
visitProgramMethod
public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
- 指定者:
visitProgramMethod在接口中MemberVisitor
-
visitLibraryField
public void visitLibraryField(LibraryClass programClass, LibraryField libraryField)
- 指定者:
visitLibraryField在接口中MemberVisitor
-
visitLibraryMethod
public void visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
- 指定者:
visitLibraryMethod在接口中MemberVisitor
-
-