接口 InvocationUnit
- 所有已知实现类:
BasicInvocationUnit,ExecutingInvocationUnit,ReferenceTracingInvocationUnit,SimplifiedInvocationUnit
public interface InvocationUnit
This interface sets up the variables for entering a method, and it updates the stack for the
invocation of a class member.
-
方法概要
修饰符和类型方法说明voidenterExceptionHandler(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, int catchType, Stack stack) Sets up the given stack for entering the given exception handler.voidenterMethod(Clazz clazz, Method method, Variables variables) Sets up the given variables for entering the given method.voidexitMethod(Clazz clazz, Method method, Value returnValue) Exits the given method with the given return value.voidinvokeMember(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction, Stack stack, Variables variables) Updates the given stack corresponding to the execution of the given field or method reference instruction.
-
方法详细资料
-
enterMethod
Sets up the given variables for entering the given method. -
exitMethod
Exits the given method with the given return value. -
enterExceptionHandler
void enterExceptionHandler(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, int catchType, Stack stack) Sets up the given stack for entering the given exception handler. -
invokeMember
void invokeMember(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction, Stack stack, Variables variables) Updates the given stack corresponding to the execution of the given field or method reference instruction.
-