Package net.bytebuddy.asm
Class Advice.MethodSizeHandler.Default.WithCopiedArguments
- java.lang.Object
-
- net.bytebuddy.asm.Advice.MethodSizeHandler.Default
-
- net.bytebuddy.asm.Advice.MethodSizeHandler.Default.WithCopiedArguments
-
- All Implemented Interfaces:
Advice.MethodSizeHandler,Advice.MethodSizeHandler.ForInstrumentedMethod
- Enclosing class:
- Advice.MethodSizeHandler.Default
protected static class Advice.MethodSizeHandler.Default.WithCopiedArguments extends Advice.MethodSizeHandler.Default
A method size handler that expects that the original arguments were copied.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.asm.Advice.MethodSizeHandler.Default
Advice.MethodSizeHandler.Default.ForAdvice, Advice.MethodSizeHandler.Default.WithCopiedArguments, Advice.MethodSizeHandler.Default.WithRetainedArguments
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.MethodSizeHandler
Advice.MethodSizeHandler.Default, Advice.MethodSizeHandler.ForInstrumentedMethod, Advice.MethodSizeHandler.NoOp
-
-
Field Summary
-
Fields inherited from class net.bytebuddy.asm.Advice.MethodSizeHandler.Default
enterTypes, exitTypes, instrumentedMethod, localVariableLength, stackSize
-
Fields inherited from interface net.bytebuddy.asm.Advice.MethodSizeHandler
UNDEFINED_SIZE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWithCopiedArguments(MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> enterTypes, java.util.List<? extends TypeDescription> exitTypes)Creates a new default method size handler that expectes the original arguments to be copied.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompoundLocalVariableLength(int localVariableLength)Computes a compound local variable array length for the advice and the translated instrumented method.-
Methods inherited from class net.bytebuddy.asm.Advice.MethodSizeHandler.Default
bindEnter, bindExit, compoundStackSize, of, requireLocalVariableLength, requireStackSize
-
-
-
-
Constructor Detail
-
WithCopiedArguments
protected WithCopiedArguments(MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> enterTypes, java.util.List<? extends TypeDescription> exitTypes)
Creates a new default method size handler that expectes the original arguments to be copied.- Parameters:
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.
-
-
Method Detail
-
compoundLocalVariableLength
public int compoundLocalVariableLength(int localVariableLength)
Description copied from interface:Advice.MethodSizeHandler.ForInstrumentedMethodComputes a compound local variable array length for the advice and the translated instrumented method.- Specified by:
compoundLocalVariableLengthin interfaceAdvice.MethodSizeHandler.ForInstrumentedMethod- Overrides:
compoundLocalVariableLengthin classAdvice.MethodSizeHandler.Default- 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.
-
-