Interface Advice.MethodSizeHandler.ForInstrumentedMethod
- All Superinterfaces:
Advice.MethodSizeHandler
- All Known Implementing Classes:
Advice.MethodSizeHandler.Default, Advice.MethodSizeHandler.Default.WithCopiedArguments, Advice.MethodSizeHandler.Default.WithRetainedArguments, Advice.MethodSizeHandler.NoOp
- Enclosing interface:
Advice.MethodSizeHandler
public static interface Advice.MethodSizeHandler.ForInstrumentedMethod
extends Advice.MethodSizeHandler
A method size handler for the instrumented method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Advice.MethodSizeHandler
Advice.MethodSizeHandler.Default, Advice.MethodSizeHandler.ForAdvice, Advice.MethodSizeHandler.ForInstrumentedMethod, Advice.MethodSizeHandler.NoOp -
Field Summary
Fields inherited from interface Advice.MethodSizeHandler
UNDEFINED_SIZE -
Method Summary
Modifier and TypeMethodDescriptionbindEnter(MethodDescription.TypeToken typeToken) Binds a method size handler for the enter advice.bindExit(MethodDescription.TypeToken typeToken) Binds the method size handler for the exit advice.intcompoundLocalVariableLength(int localVariableLength) Computes a compound local variable array length for the advice and the translated instrumented method.intcompoundStackSize(int stackSize) Computes a compound stack size for the advice and the translated instrumented method.Methods inherited from interface Advice.MethodSizeHandler
requireLocalVariableLength, requireStackSize
-
Method Details
-
bindEnter
Binds a method size handler for the enter advice.- Parameters:
typeToken- The type token representing the enter advice.- Returns:
- A method size handler for the enter advice.
-
bindExit
Binds the method size handler for the exit advice.- Parameters:
typeToken- The type token representing the exit advice.- Returns:
- A method size handler for the exit advice.
-
compoundStackSize
int compoundStackSize(int stackSize) Computes a compound stack size for the advice and the translated instrumented method.- Parameters:
stackSize- The required stack size of the instrumented method before translation.- Returns:
- The stack size required by the instrumented method and its advice methods.
-
compoundLocalVariableLength
int compoundLocalVariableLength(int localVariableLength) Computes a compound local variable array length for the advice and the translated instrumented method.- Parameters:
localVariableLength- The required local variable array length of the instrumented method before translation.- Returns:
- The local variable length required by the instrumented method and its advice methods.
-