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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA default implementation for a method size handler.static interfaceA method size handler for an advice method.static interfaceA method size handler for the instrumented method.static enumA non-operational method size handler. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that a size is not computed but handled directly by ASM. -
Method Summary
Modifier and TypeMethodDescriptionvoidrequireLocalVariableLength(int localVariableLength) Requires a minimum length of the local variable array.voidrequireStackSize(int stackSize) Records a minimum stack size required by the represented advice method.
-
Field Details
-
UNDEFINED_SIZE
static final int UNDEFINED_SIZEIndicates 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.
-