Interface Advice.MethodSizeHandler.ForAdvice

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

public static interface Advice.MethodSizeHandler.ForAdvice extends Advice.MethodSizeHandler
A method size handler for an advice method.
  • Method Details

    • requireStackSizePadding

      void requireStackSizePadding(int stackSizePadding)
      Requires additional padding for the operand stack that is required for this advice's execution.
      Parameters:
      stackSizePadding - The required padding.
    • requireLocalVariableLengthPadding

      void requireLocalVariableLengthPadding(int localVariableLengthPadding)
      Requires additional padding for the local variable array that is required for this advice's execution.
      Parameters:
      localVariableLengthPadding - The required padding.
    • recordMaxima

      void recordMaxima(int stackSize, int localVariableLength)
      Records the maximum values for stack size and local variable array which are required by the advice method for its individual execution without translation.
      Parameters:
      stackSize - The minimum required stack size.
      localVariableLength - The minimum required length of the local variable array.