Interface Advice.MethodSizeHandler.ForInstrumentedMethod

All Superinterfaces:
Advice.MethodSizeHandler
All Known Implementing Classes:
Advice.MethodSizeHandler.Default, Advice.MethodSizeHandler.Default.WithCopiedArguments, Advice.MethodSizeHandler.Default.WithRetainedArguments, Advice.MethodSizeHandler.NoOp
Enclosing interface:
Advice.MethodSizeHandler

public static interface Advice.MethodSizeHandler.ForInstrumentedMethod extends Advice.MethodSizeHandler
A method size handler for the instrumented method.
  • Method Details

    • bindEnter

      Binds a method size handler for the enter advice.
      Parameters:
      adviceMethod - The method representing the enter advice.
      Returns:
      A method size handler for the enter advice.
    • bindExit

      Binds the method size handler for the exit advice.
      Parameters:
      adviceMethod - The method representing the exit advice.
      Returns:
      A method size handler for the exit advice.
    • compoundStackSize

      int compoundStackSize(int stackSize)
      Computes a compound stack size for the advice and the translated instrumented method.
      Parameters:
      stackSize - The required stack size of the instrumented method before translation.
      Returns:
      The stack size required by the instrumented method and its advice methods.
    • compoundLocalVariableLength

      int compoundLocalVariableLength(int localVariableLength)
      Computes a compound local variable array length for the advice and the translated instrumented method.
      Parameters:
      localVariableLength - The required local variable array length of the instrumented method before translation.
      Returns:
      The local variable length required by the instrumented method and its advice methods.