protected static class Advice.MethodSizeHandler.Default.WithRetainedArguments extends Advice.MethodSizeHandler.Default
Advice.MethodSizeHandler.Default.ForAdvice, Advice.MethodSizeHandler.Default.WithCopiedArguments, Advice.MethodSizeHandler.Default.WithRetainedArgumentsAdvice.MethodSizeHandler.Default, Advice.MethodSizeHandler.ForInstrumentedMethod, Advice.MethodSizeHandler.NoOpinitialTypes, instrumentedMethod, localVariableLength, postMethodTypes, preMethodTypes, stackSizeUNDEFINED_SIZE| Modifier | Constructor and Description |
|---|---|
protected |
WithRetainedArguments(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes)
Creates a new default method size handler that expects that the original arguments are retained.
|
| 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, requireStackSizeprotected WithRetainedArguments(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.ForInstrumentedMethodcompoundLocalVariableLength in class Advice.MethodSizeHandler.DefaultlocalVariableLength - The required local variable array length of the instrumented method before translation.Copyright © 2014–2025. All rights reserved.