Interface Advice.MethodSizeHandler

All Known Subinterfaces:
Advice.MethodSizeHandler.ForAdvice, Advice.MethodSizeHandler.ForInstrumentedMethod
All Known Implementing Classes:
Advice.MethodSizeHandler.Default, Advice.MethodSizeHandler.Default.ForAdvice, Advice.MethodSizeHandler.Default.WithCopiedArguments, Advice.MethodSizeHandler.Default.WithRetainedArguments, Advice.MethodSizeHandler.NoOp
Enclosing class:
Advice

protected static interface Advice.MethodSizeHandler
A handler for computing the instrumented method's size.
  • Field Details

    • UNDEFINED_SIZE

      static final int UNDEFINED_SIZE
      Indicates that a size is not computed but handled directly by ASM.
      See Also:
  • Method Details

    • requireStackSize

      void requireStackSize(int stackSize)
      Records a minimum stack size required by the represented advice method.
      Parameters:
      stackSize - The minimum size required by the represented advice method.
    • requireLocalVariableLength

      void requireLocalVariableLength(int localVariableLength)
      Requires a minimum length of the local variable array.
      Parameters:
      localVariableLength - The minimal required length of the local variable array.