protected static class Advice.MethodSizeHandler.Default.WithRetainedArguments 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
enterTypes, exitTypes, instrumentedMethod, localVariableLength, stackSize
UNDEFINED_SIZE
Modifier | Constructor and Description |
---|---|
protected |
WithRetainedArguments(MethodDescription instrumentedMethod,
List<? extends TypeDescription> enterTypes,
List<? extends TypeDescription> exitTypes)
Creates a new default method size handler that expects that the original arguments are retained.
|
Modifier and Type | Method and Description |
---|---|
int |
compoundLocalVariableLength(int localVariableLength)
Computes a compound local variable array length for the advice and the translated instrumented method.
|
bindEnter, bindExit, compoundStackSize, of, requireLocalVariableLength, requireStackSize
protected WithRetainedArguments(MethodDescription instrumentedMethod, List<? extends TypeDescription> enterTypes, List<? extends TypeDescription> exitTypes)
instrumentedMethod
- The instrumented method.enterTypes
- A list of virtual method arguments that are available before the instrumented method is executed.exitTypes
- A list of virtual method arguments that are available after the instrumented method has completed.public int compoundLocalVariableLength(int localVariableLength)
Advice.MethodSizeHandler.ForInstrumentedMethod
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–2018. All rights reserved.