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.MethodSizeHandlerA handler for computing the instrumented method's size.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAdvice.MethodSizeHandler.DefaultA default implementation for a method size handler.static interfaceAdvice.MethodSizeHandler.ForAdviceA method size handler for an advice method.static interfaceAdvice.MethodSizeHandler.ForInstrumentedMethodA method size handler for the instrumented method.static classAdvice.MethodSizeHandler.NoOpA non-operational method size handler.
-
Field Summary
Fields Modifier and Type Field Description static intUNDEFINED_SIZEIndicates that a size is not computed but handled directly by ASM.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrequireLocalVariableLength(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 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.
-
-