Package net.bytebuddy.asm
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 class
A default implementation for a method size handler.static interface
A method size handler for an advice method.static interface
A method size handler for the instrumented method.static enum
A non-operational method size handler. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Indicates that a size is not computed but handled directly by ASM. -
Method Summary
Modifier and TypeMethodDescriptionvoid
requireLocalVariableLength
(int localVariableLength) Requires a minimum length of the local variable array.void
requireStackSize
(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.
-