public static enum Advice.MetaDataHandler.NoOp extends Enum<Advice.MetaDataHandler.NoOp> implements Advice.MetaDataHandler.ForInstrumentedMethod, Advice.MetaDataHandler.ForAdvice
Advice.MetaDataHandler.Default, Advice.MetaDataHandler.ForAdvice, Advice.MetaDataHandler.ForInstrumentedMethod, Advice.MetaDataHandler.NoOp
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
UNDEFINED_SIZE
Modifier and Type | Method and Description |
---|---|
Advice.MetaDataHandler.ForAdvice |
bindEntry(MethodDescription.InDefinedShape adviceMethod)
Binds this meta data handler for the entry advice.
|
Advice.MetaDataHandler.ForAdvice |
bindExit(MethodDescription.InDefinedShape adviceMethod)
Binds this meta data handler for the exit advice.
|
int |
compoundLocalVariableLength(int localVariableLength)
Computes a compound local variable array length for the advice and the translated instrumented method.
|
int |
compoundStackSize(int stackSize)
Computes a compound stack size for the advice and the translated instrumented method.
|
int |
getReaderHint()
Returns the reader hint to apply when parsing the advice method.
|
void |
injectCompletionFrame(MethodVisitor methodVisitor,
boolean secondary)
Injects a frame after a method's completion.
|
void |
injectHandlerFrame(MethodVisitor methodVisitor)
Injects a frame for a method's exception handler.
|
void |
recordMaxima(int maxStack,
int maxLocals)
Records the maximum values for stack size and local variable array which are required by the advice method
for its individual execution without translation.
|
void |
recordPadding(int padding)
Records a minimum padding additionally to the computed stack size that is required for implementing this advice method.
|
String |
toString() |
void |
translateFrame(MethodVisitor methodVisitor,
int frameType,
int localVariableLength,
Object[] localVariable,
int stackSize,
Object[] stack)
Translates a frame.
|
static Advice.MetaDataHandler.NoOp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.MetaDataHandler.NoOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.MetaDataHandler.NoOp INSTANCE
public static Advice.MetaDataHandler.NoOp[] values()
for (Advice.MetaDataHandler.NoOp c : Advice.MetaDataHandler.NoOp.values()) System.out.println(c);
public static Advice.MetaDataHandler.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 void recordMaxima(int maxStack, int maxLocals)
Advice.MetaDataHandler.ForAdvice
recordMaxima
in interface Advice.MetaDataHandler.ForAdvice
maxStack
- The minimum required stack size.maxLocals
- The minimum required length of the local variable array.public void recordPadding(int padding)
Advice.MetaDataHandler.ForAdvice
recordPadding
in interface Advice.MetaDataHandler.ForAdvice
padding
- The minimum required padding.public int compoundStackSize(int stackSize)
Advice.MetaDataHandler.ForInstrumentedMethod
compoundStackSize
in interface Advice.MetaDataHandler.ForInstrumentedMethod
stackSize
- The required stack size of the instrumented method before translation.public int compoundLocalVariableLength(int localVariableLength)
Advice.MetaDataHandler.ForInstrumentedMethod
compoundLocalVariableLength
in interface Advice.MetaDataHandler.ForInstrumentedMethod
localVariableLength
- The required local variable array length of the instrumented method before translation.public Advice.MetaDataHandler.ForAdvice bindEntry(MethodDescription.InDefinedShape adviceMethod)
Advice.MetaDataHandler.ForInstrumentedMethod
bindEntry
in interface Advice.MetaDataHandler.ForInstrumentedMethod
adviceMethod
- The entry advice method.public Advice.MetaDataHandler.ForAdvice bindExit(MethodDescription.InDefinedShape adviceMethod)
Advice.MetaDataHandler.ForInstrumentedMethod
bindExit
in interface Advice.MetaDataHandler.ForInstrumentedMethod
adviceMethod
- The exit advice method.public int getReaderHint()
Advice.MetaDataHandler.ForInstrumentedMethod
getReaderHint
in interface Advice.MetaDataHandler.ForInstrumentedMethod
public void translateFrame(MethodVisitor methodVisitor, int frameType, int localVariableLength, Object[] localVariable, int stackSize, Object[] stack)
Advice.MetaDataHandler
translateFrame
in interface Advice.MetaDataHandler
methodVisitor
- The method visitor to write the frame to.frameType
- 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 injectHandlerFrame(MethodVisitor methodVisitor)
Advice.MetaDataHandler
injectHandlerFrame
in interface Advice.MetaDataHandler
methodVisitor
- The method visitor to write the frame to.public void injectCompletionFrame(MethodVisitor methodVisitor, boolean secondary)
Advice.MetaDataHandler
injectCompletionFrame
in interface Advice.MetaDataHandler
methodVisitor
- The method visitor to write the frame to.secondary
- true
if the frame is written a second time.public String toString()
toString
in class Enum<Advice.MetaDataHandler.NoOp>
Copyright © 2014–2016. All rights reserved.