protected static interface Advice.MetaDataHandler
| Modifier and Type | Interface and Description |
|---|---|
static class |
Advice.MetaDataHandler.Default
A default implementation of a meta data handler for an instrumented method.
|
static interface |
Advice.MetaDataHandler.ForAdvice
A meta data handler for an advice method.
|
static interface |
Advice.MetaDataHandler.ForInstrumentedMethod
A meta data handler for the instrumented method.
|
static class |
Advice.MetaDataHandler.NoOp
A non-operational meta data handler that does not translate any frames and does not compute stack sizes.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
translateFrame(MethodVisitor methodVisitor,
int frameType,
int localVariableLength,
Object[] localVariable,
int stackSize,
Object[] stack)
Translates a frame.
|
void translateFrame(MethodVisitor methodVisitor, int frameType, int localVariableLength, Object[] localVariable, int stackSize, Object[] stack)
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.void injectHandlerFrame(MethodVisitor methodVisitor)
methodVisitor - The method visitor to write the frame to.void injectCompletionFrame(MethodVisitor methodVisitor, boolean secondary)
methodVisitor - The method visitor to write the frame to.secondary - true if the frame is written a second time.Copyright © 2014–2016. All rights reserved.