Interface InvocationUnit

All Known Implementing Classes:
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.
  • Method Details

    • enterMethod

      void enterMethod(Clazz clazz, Method method, Variables variables)
      Sets up the given variables for entering the given method.
    • exitMethod

      void exitMethod(Clazz clazz, Method method, Value returnValue)
      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.