protected abstract class Advice.MetaDataHandler.Default.ForAdvice extends Object implements Advice.MetaDataHandler.ForAdvice
Advice.MetaDataHandler.Default, Advice.MetaDataHandler.ForAdvice, Advice.MetaDataHandler.ForInstrumentedMethod, Advice.MetaDataHandler.NoOp
Modifier and Type | Field and Description |
---|---|
protected MethodDescription.InDefinedShape |
methodDescription
The method description for which frames are translated.
|
protected TypeList |
requiredTypes
A list of intermediate types to be considered as part of the instrumented method's steady signature.
|
protected Advice.MetaDataHandler.Default.TranslationMode |
translationMode
The translation mode to apply for this advice method.
|
Modifier | Constructor and Description |
---|---|
protected |
ForAdvice(MethodDescription.InDefinedShape methodDescription,
TypeList requiredTypes,
TypeList yieldedTypes,
Advice.MetaDataHandler.Default.TranslationMode translationMode)
Creates a new meta data handler for an advice method.
|
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 type,
int localVariableLength,
Object[] localVariable,
int stackSize,
Object[] stack)
Translates a frame.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
recordMaxima, recordPadding
protected final MethodDescription.InDefinedShape methodDescription
protected final TypeList requiredTypes
protected final Advice.MetaDataHandler.Default.TranslationMode translationMode
Advice.MetaDataHandler.Default.TranslationMode.ENTRY
or Advice.MetaDataHandler.Default.TranslationMode.EXIT
.protected ForAdvice(MethodDescription.InDefinedShape methodDescription, TypeList requiredTypes, TypeList yieldedTypes, Advice.MetaDataHandler.Default.TranslationMode translationMode)
methodDescription
- The method description for which frames are translated.requiredTypes
- A list of expected types to be considered as part of the instrumented method's steady signature.yieldedTypes
- The types that this method yields as a result.translationMode
- The translation mode to apply for this advice method. Should be
either Advice.MetaDataHandler.Default.TranslationMode.ENTRY
or Advice.MetaDataHandler.Default.TranslationMode.EXIT
.public void translateFrame(MethodVisitor methodVisitor, int type, int localVariableLength, Object[] localVariable, int stackSize, Object[] stack)
Advice.MetaDataHandler
translateFrame
in interface Advice.MetaDataHandler
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 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.Copyright © 2014–2016. All rights reserved.