protected static class Advice.StackMapFrameHandler.Default.WithPreservedArguments.WithoutArgumentCopy extends Advice.StackMapFrameHandler.Default.WithPreservedArguments
Advice.StackMapFrameHandler.Default.WithPreservedArguments.WithArgumentCopy, Advice.StackMapFrameHandler.Default.WithPreservedArguments.WithoutArgumentCopy
Advice.StackMapFrameHandler.Default.ForAdvice, Advice.StackMapFrameHandler.Default.Initialization, Advice.StackMapFrameHandler.Default.TranslationMode, Advice.StackMapFrameHandler.Default.Trivial, Advice.StackMapFrameHandler.Default.WithPreservedArguments
Advice.StackMapFrameHandler.Default, Advice.StackMapFrameHandler.ForInstrumentedMethod, Advice.StackMapFrameHandler.ForPostProcessor, Advice.StackMapFrameHandler.NoOp
allowCompactCompletionFrame
currentFrameDivergence, EMPTY, expandFrames, initialTypes, instrumentedMethod, instrumentedType, latentTypes, postMethodTypes, preMethodTypes
Modifier | Constructor and Description |
---|---|
protected |
WithoutArgumentCopy(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames,
boolean allowCompactCompletionFrame)
Creates a new stack map frame handler that expects the original frames to be preserved.
|
Modifier and Type | Method and Description |
---|---|
void |
injectStartFrame(MethodVisitor methodVisitor)
Injects a frame before executing the instrumented method.
|
void |
translateFrame(MethodVisitor methodVisitor,
int type,
int localVariableLength,
Object[] localVariable,
int stackSize,
Object[] stack)
Translates a frame.
|
bindExit, injectCompletionFrame, injectExceptionFrame, injectInitializationFrame, injectPostCompletionFrame, injectReturnFrame, translateFrame
bindEnter, getReaderHint, injectFullFrame, of
protected WithoutArgumentCopy(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean expandFrames, boolean allowCompactCompletionFrame)
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.initialTypes
- A list of virtual method arguments that are explicitly added before any code execution.latentTypes
- A list of virtual arguments that are available after the enter advice method is executed.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.allowCompactCompletionFrame
- true
if a completion frame for the method bust be a full frame to reflect an initialization change.public void injectStartFrame(MethodVisitor methodVisitor)
methodVisitor
- The method visitor to write any frames to.public void translateFrame(MethodVisitor methodVisitor, int type, int localVariableLength, @MaybeNull Object[] localVariable, int stackSize, @MaybeNull Object[] stack)
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.Copyright © 2014–2025. All rights reserved.