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 Classes Modifier and Type Interface Description static class
Advice.MethodSizeHandler.Default
A default implementation for a method size handler.static interface
Advice.MethodSizeHandler.ForAdvice
A method size handler for an advice method.static interface
Advice.MethodSizeHandler.ForInstrumentedMethod
A method size handler for the instrumented method.static class
Advice.MethodSizeHandler.NoOp
A non-operational method size handler.
-
Field Summary
Fields Modifier and Type Field Description static int
UNDEFINED_SIZE
Indicates that a size is not computed but handled directly by ASM.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
UNDEFINED_SIZE
static final int UNDEFINED_SIZE
Indicates that a size is not computed but handled directly by ASM.- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
-