Package net.bytebuddy.asm
Class Advice.StackMapFrameHandler.Default.WithPreservedArguments.UsingArgumentCopy
- java.lang.Object
-
- net.bytebuddy.asm.Advice.StackMapFrameHandler.Default
-
- net.bytebuddy.asm.Advice.StackMapFrameHandler.Default.WithPreservedArguments
-
- net.bytebuddy.asm.Advice.StackMapFrameHandler.Default.WithPreservedArguments.UsingArgumentCopy
-
- All Implemented Interfaces:
Advice.StackMapFrameHandler
,Advice.StackMapFrameHandler.ForInstrumentedMethod
- Enclosing class:
- Advice.StackMapFrameHandler.Default.WithPreservedArguments
protected static class Advice.StackMapFrameHandler.Default.WithPreservedArguments.UsingArgumentCopy extends Advice.StackMapFrameHandler.Default.WithPreservedArguments
A stack map frame handler that expects that an argument copy of the original method arguments was made.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.asm.Advice.StackMapFrameHandler.Default.WithPreservedArguments
Advice.StackMapFrameHandler.Default.WithPreservedArguments.RequiringConsistentShape, Advice.StackMapFrameHandler.Default.WithPreservedArguments.UsingArgumentCopy
-
Nested classes/interfaces inherited from class net.bytebuddy.asm.Advice.StackMapFrameHandler.Default
Advice.StackMapFrameHandler.Default.ForAdvice, Advice.StackMapFrameHandler.Default.Initialization, Advice.StackMapFrameHandler.Default.TranslationMode, Advice.StackMapFrameHandler.Default.Trivial, Advice.StackMapFrameHandler.Default.WithPreservedArguments
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.StackMapFrameHandler
Advice.StackMapFrameHandler.Default, Advice.StackMapFrameHandler.ForInstrumentedMethod, Advice.StackMapFrameHandler.NoOp
-
-
Field Summary
-
Fields inherited from class net.bytebuddy.asm.Advice.StackMapFrameHandler.Default.WithPreservedArguments
allowCompactCompletionFrame
-
Fields inherited from class net.bytebuddy.asm.Advice.StackMapFrameHandler.Default
currentFrameDivergence, EMPTY, expandFrames, initialTypes, instrumentedMethod, instrumentedType, postMethodTypes, preMethodTypes
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UsingArgumentCopy(TypeDescription instrumentedType, MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.List<? extends TypeDescription> postMethodTypes, boolean expandFrames)
Creates a new stack map frame handler that expects an argument copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
injectStartFrame(org.objectweb.asm.MethodVisitor methodVisitor)
Injects a frame before executing the instrumented method.void
translateFrame(org.objectweb.asm.MethodVisitor methodVisitor, int type, int localVariableLength, java.lang.Object[] localVariable, int stackSize, java.lang.Object[] stack)
Translates a frame.-
Methods inherited from class net.bytebuddy.asm.Advice.StackMapFrameHandler.Default.WithPreservedArguments
bindExit, injectCompletionFrame, injectExceptionFrame, injectInitializationFrame, injectPostCompletionFrame, injectReturnFrame, translateFrame
-
Methods inherited from class net.bytebuddy.asm.Advice.StackMapFrameHandler.Default
bindEnter, getReaderHint, injectFullFrame, of
-
-
-
-
Constructor Detail
-
UsingArgumentCopy
protected UsingArgumentCopy(TypeDescription instrumentedType, MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.List<? extends TypeDescription> postMethodTypes, boolean expandFrames)
Creates a new stack map frame handler that expects an argument copy.- Parameters:
instrumentedType
- The instrumented type.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.expandFrames
-true
if the meta data handler is expected to expand its frames.
-
-
Method Detail
-
injectStartFrame
public void injectStartFrame(org.objectweb.asm.MethodVisitor methodVisitor)
Injects a frame before executing the instrumented method.- Parameters:
methodVisitor
- The method visitor to write any frames to.
-
translateFrame
public void translateFrame(org.objectweb.asm.MethodVisitor methodVisitor, int type, int localVariableLength, java.lang.Object[] localVariable, int stackSize, java.lang.Object[] stack)
Translates a frame.- Parameters:
methodVisitor
- The method visitor to write the frame to.type
- The frame's type.localVariableLength
- The local variable length.localVariable
- An array containing the types of the current local variables.stackSize
- The size of the operand stack.stack
- An array containing the types of the current operand stack.
-
-