public static enum Advice.StackMapFrameHandler.NoOp extends Enum<Advice.StackMapFrameHandler.NoOp> implements Advice.StackMapFrameHandler.ForInstrumentedMethod, Advice.StackMapFrameHandler.ForAdvice
Advice.StackMapFrameHandler.Default, Advice.StackMapFrameHandler.ForAdvice, Advice.StackMapFrameHandler.ForInstrumentedMethod, Advice.StackMapFrameHandler.ForPostProcessor, Advice.StackMapFrameHandler.NoOp| Enum Constant and Description | 
|---|
| INSTANCEThe singleton instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| Advice.StackMapFrameHandler.ForAdvice | bindEnter(MethodDescription.InDefinedShape adviceMethod)Binds this meta data handler for the enter advice. | 
| Advice.StackMapFrameHandler.ForAdvice | bindExit(MethodDescription.InDefinedShape adviceMethod)Binds this meta data handler for the exit advice. | 
| int | getReaderHint()Returns a hint to supply to a  ClassReaderwhen parsing an advice method. | 
| void | injectCompletionFrame(MethodVisitor methodVisitor)Injects a frame indicating the completion of the currently handled method, i.e. | 
| void | injectExceptionFrame(MethodVisitor methodVisitor)Injects a frame indicating the beginning of an exception handler for the currently handled method. | 
| void | injectInitializationFrame(MethodVisitor methodVisitor)Injects a frame after initialization if any initialization is performed. | 
| void | injectIntermediateFrame(MethodVisitor methodVisitor,
                       List<? extends TypeDescription> stack)Injects a frame that represents the current state. | 
| void | injectPostCompletionFrame(MethodVisitor methodVisitor)Injects a frame indicating the completion of the currently handled method, i.e. | 
| void | injectReturnFrame(MethodVisitor methodVisitor)Injects a frame indicating the beginning of a return value handler for the currently handled method. | 
| 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. | 
| static Advice.StackMapFrameHandler.NoOp | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static Advice.StackMapFrameHandler.NoOp[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final Advice.StackMapFrameHandler.NoOp INSTANCE
public static Advice.StackMapFrameHandler.NoOp[] values()
for (Advice.StackMapFrameHandler.NoOp c : Advice.StackMapFrameHandler.NoOp.values()) System.out.println(c);
public static Advice.StackMapFrameHandler.NoOp valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Advice.StackMapFrameHandler.ForAdvice bindEnter(MethodDescription.InDefinedShape adviceMethod)
bindEnter in interface Advice.StackMapFrameHandler.ForInstrumentedMethodadviceMethod - The enter advice method.public Advice.StackMapFrameHandler.ForAdvice bindExit(MethodDescription.InDefinedShape adviceMethod)
bindExit in interface Advice.StackMapFrameHandler.ForInstrumentedMethodadviceMethod - The exit advice method.public int getReaderHint()
ClassReader when parsing an advice method.getReaderHint in interface Advice.StackMapFrameHandler.ForInstrumentedMethodpublic void translateFrame(MethodVisitor methodVisitor, int type, int localVariableLength, @MaybeNull Object[] localVariable, int stackSize, @MaybeNull Object[] stack)
translateFrame in interface Advice.StackMapFrameHandlermethodVisitor - 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.public void injectReturnFrame(MethodVisitor methodVisitor)
injectReturnFrame in interface Advice.StackMapFrameHandlermethodVisitor - The method visitor onto which to apply the stack map frame.public void injectExceptionFrame(MethodVisitor methodVisitor)
injectExceptionFrame in interface Advice.StackMapFrameHandlermethodVisitor - The method visitor onto which to apply the stack map frame.public void injectCompletionFrame(MethodVisitor methodVisitor)
injectCompletionFrame in interface Advice.StackMapFrameHandlermethodVisitor - The method visitor onto which to apply the stack map frame.public void injectInitializationFrame(MethodVisitor methodVisitor)
injectInitializationFrame in interface Advice.StackMapFrameHandler.ForInstrumentedMethodmethodVisitor - The method visitor to write any frames to.public void injectStartFrame(MethodVisitor methodVisitor)
injectStartFrame in interface Advice.StackMapFrameHandler.ForInstrumentedMethodmethodVisitor - The method visitor to write any frames to.public void injectPostCompletionFrame(MethodVisitor methodVisitor)
injectPostCompletionFrame in interface Advice.StackMapFrameHandler.ForInstrumentedMethodmethodVisitor - The method visitor onto which to apply the stack map frame.public void injectIntermediateFrame(MethodVisitor methodVisitor, List<? extends TypeDescription> stack)
injectIntermediateFrame in interface Advice.StackMapFrameHandler.ForPostProcessormethodVisitor - The method visitor onto which to apply the stack map frame.stack - A list of types that are currently on the stack.Copyright © 2014–2024. All rights reserved.