Package net.bytebuddy.asm
Interface Advice.MethodSizeHandler.ForAdvice
-
- All Superinterfaces:
Advice.MethodSizeHandler
- All Known Implementing Classes:
Advice.MethodSizeHandler.Default.ForAdvice
,Advice.MethodSizeHandler.NoOp
- Enclosing interface:
- Advice.MethodSizeHandler
public static interface Advice.MethodSizeHandler.ForAdvice extends Advice.MethodSizeHandler
A method size handler for an advice method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.MethodSizeHandler
Advice.MethodSizeHandler.Default, Advice.MethodSizeHandler.ForAdvice, Advice.MethodSizeHandler.ForInstrumentedMethod, Advice.MethodSizeHandler.NoOp
-
-
Field Summary
-
Fields inherited from interface net.bytebuddy.asm.Advice.MethodSizeHandler
UNDEFINED_SIZE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
recordMaxima(int stackSize, int localVariableLength)
Records the maximum values for stack size and local variable array which are required by the advice method for its individual execution without translation.void
recordPadding(int padding)
Records a minimum padding additionally to the computed stack size that is required for implementing this advice method.void
requireStackSize(int stackSize)
Records a minimum stack size required by the represented advice method.-
Methods inherited from interface net.bytebuddy.asm.Advice.MethodSizeHandler
requireLocalVariableLength
-
-
-
-
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.
-
recordMaxima
void recordMaxima(int stackSize, int localVariableLength)
Records the maximum values for stack size and local variable array which are required by the advice method for its individual execution without translation.- Parameters:
stackSize
- The minimum required stack size.localVariableLength
- The minimum required length of the local variable array.
-
recordPadding
void recordPadding(int padding)
Records a minimum padding additionally to the computed stack size that is required for implementing this advice method.- Parameters:
padding
- The minimum required padding.
-
-