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(MethodVisitor methodVisitor,
boolean secondary)
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 |
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)
Advice.StackMapFrameHandler.ForInstrumentedMethod
bindEnter
in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
adviceMethod
- The enter advice method.public Advice.StackMapFrameHandler.ForAdvice bindExit(MethodDescription.InDefinedShape adviceMethod)
Advice.StackMapFrameHandler.ForInstrumentedMethod
bindExit
in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
adviceMethod
- The exit advice method.public int getReaderHint()
Advice.StackMapFrameHandler.ForInstrumentedMethod
ClassReader
when parsing an advice method.getReaderHint
in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
public void translateFrame(MethodVisitor methodVisitor, int type, int localVariableLength, Object[] localVariable, int stackSize, Object[] stack)
Advice.StackMapFrameHandler
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(MethodVisitor methodVisitor)
Advice.StackMapFrameHandler
injectReturnFrame
in interface Advice.StackMapFrameHandler
methodVisitor
- The method visitor onto which to apply the stack map frame.public void injectExceptionFrame(MethodVisitor methodVisitor)
Advice.StackMapFrameHandler
injectExceptionFrame
in interface Advice.StackMapFrameHandler
methodVisitor
- The method visitor onto which to apply the stack map frame.public void injectCompletionFrame(MethodVisitor methodVisitor, boolean secondary)
Advice.StackMapFrameHandler
injectCompletionFrame
in interface Advice.StackMapFrameHandler
methodVisitor
- The method visitor onto which to apply the stack map frame.secondary
- true
if another completion frame for this method was written previously.public void injectStartFrame(MethodVisitor methodVisitor)
Advice.StackMapFrameHandler.ForInstrumentedMethod
injectStartFrame
in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
methodVisitor
- The method visitor to write any frames to.Copyright © 2014–2018. All rights reserved.