protected static class Advice.MethodSizeHandler.Default.WithCopiedArguments extends Advice.MethodSizeHandler.Default
Advice.MethodSizeHandler.Default.ForAdvice, Advice.MethodSizeHandler.Default.WithCopiedArguments, Advice.MethodSizeHandler.Default.WithRetainedArguments
Advice.MethodSizeHandler.Default, Advice.MethodSizeHandler.ForInstrumentedMethod, Advice.MethodSizeHandler.NoOp
initialTypes, instrumentedMethod, localVariableLength, postMethodTypes, preMethodTypes, stackSize
UNDEFINED_SIZE
Modifier | Constructor and Description |
---|---|
protected |
WithCopiedArguments(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes)
Creates a new default method size handler that expects the original arguments to be copied.
|
Modifier and Type | Method and Description |
---|---|
Advice.MethodSizeHandler.ForAdvice |
bindExit(MethodDescription.TypeToken typeToken)
Binds the method size handler for the exit advice.
|
int |
compoundLocalVariableLength(int localVariableLength)
Computes a compound local variable array length for the advice and the translated instrumented method.
|
bindEnter, compoundStackSize, of, requireLocalVariableLength, requireStackSize
protected WithCopiedArguments(MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes)
instrumentedMethod
- The instrumented method.initialTypes
- A list of virtual method arguments that are explicitly added before any code execution.preMethodTypes
- A list of virtual method arguments that are available before the instrumented method is executed.postMethodTypes
- A list of virtual method arguments that are available after the instrumented method has completed.public Advice.MethodSizeHandler.ForAdvice bindExit(MethodDescription.TypeToken typeToken)
typeToken
- The type token representing the exit advice.public int compoundLocalVariableLength(int localVariableLength)
compoundLocalVariableLength
in interface Advice.MethodSizeHandler.ForInstrumentedMethod
compoundLocalVariableLength
in class Advice.MethodSizeHandler.Default
localVariableLength
- The required local variable array length of the instrumented method before translation.Copyright © 2014–2025. All rights reserved.