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.NoOp
Enum Constant and Description |
---|
INSTANCE
The 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
ClassReader when parsing an advice method. |
void |
injectCompletionFrame(org.objectweb.asm.MethodVisitor methodVisitor)
Injects a frame indicating the completion of the currently handled method, i.e.
|
void |
injectExceptionFrame(org.objectweb.asm.MethodVisitor methodVisitor)
Injects a frame indicating the beginning of an exception handler for the currently handled method.
|
void |
injectInitializationFrame(org.objectweb.asm.MethodVisitor methodVisitor)
Injects a frame after initialization if any initialization is performed.
|
void |
injectPostCompletionFrame(org.objectweb.asm.MethodVisitor methodVisitor)
Injects a frame indicating the completion of the currently handled method, i.e.
|
void |
injectReturnFrame(org.objectweb.asm.MethodVisitor methodVisitor)
Injects a frame indicating the beginning of a return value handler for the currently handled method.
|
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,
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.ForInstrumentedMethod
adviceMethod
- The enter advice method.public Advice.StackMapFrameHandler.ForAdvice bindExit(MethodDescription.InDefinedShape adviceMethod)
bindExit
in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
adviceMethod
- The exit advice method.public int getReaderHint()
ClassReader
when parsing an advice method.getReaderHint
in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
public void translateFrame(org.objectweb.asm.MethodVisitor methodVisitor, int type, int localVariableLength, Object[] localVariable, int stackSize, Object[] stack)
translateFrame
in interface Advice.StackMapFrameHandler
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.public void injectReturnFrame(org.objectweb.asm.MethodVisitor methodVisitor)
injectReturnFrame
in interface Advice.StackMapFrameHandler
methodVisitor
- The method visitor onto which to apply the stack map frame.public void injectExceptionFrame(org.objectweb.asm.MethodVisitor methodVisitor)
injectExceptionFrame
in interface Advice.StackMapFrameHandler
methodVisitor
- The method visitor onto which to apply the stack map frame.public void injectCompletionFrame(org.objectweb.asm.MethodVisitor methodVisitor)
injectCompletionFrame
in interface Advice.StackMapFrameHandler
methodVisitor
- The method visitor onto which to apply the stack map frame.public void injectInitializationFrame(org.objectweb.asm.MethodVisitor methodVisitor)
injectInitializationFrame
in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
methodVisitor
- The method visitor to write any frames to.public void injectStartFrame(org.objectweb.asm.MethodVisitor methodVisitor)
injectStartFrame
in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
methodVisitor
- The method visitor to write any frames to.public void injectPostCompletionFrame(org.objectweb.asm.MethodVisitor methodVisitor)
injectPostCompletionFrame
in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
methodVisitor
- The method visitor onto which to apply the stack map frame.Copyright © 2014–2018. All rights reserved.