protected class Advice.StackMapFrameHandler.Default.ForAdvice extends Object implements Advice.StackMapFrameHandler.ForAdvice
Advice.StackMapFrameHandler.Default, Advice.StackMapFrameHandler.ForAdvice, Advice.StackMapFrameHandler.ForInstrumentedMethod, Advice.StackMapFrameHandler.NoOp| Modifier and Type | Field and Description | 
|---|---|
| protected MethodDescription.InDefinedShape | methodDescriptionThe method description for which frames are translated. | 
| protected TypeList | requiredTypesA list of intermediate types to be considered as part of the instrumented method's steady signature. | 
| protected Advice.StackMapFrameHandler.Default.TranslationMode | translationModeThe translation mode to apply for this advice method. | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | ForAdvice(MethodDescription.InDefinedShape methodDescription,
         TypeList requiredTypes,
         TypeList yieldedTypes,
         Advice.StackMapFrameHandler.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. | 
| String | toString() | 
| void | translateFrame(MethodVisitor methodVisitor,
              int type,
              int localVariableLength,
              Object[] localVariable,
              int stackSize,
              Object[] stack)Translates a frame. | 
protected final MethodDescription.InDefinedShape methodDescription
protected final TypeList requiredTypes
protected final Advice.StackMapFrameHandler.Default.TranslationMode translationMode
Advice.StackMapFrameHandler.Default.TranslationMode.ENTRY or Advice.StackMapFrameHandler.Default.TranslationMode.EXIT.protected ForAdvice(MethodDescription.InDefinedShape methodDescription, TypeList requiredTypes, TypeList yieldedTypes, Advice.StackMapFrameHandler.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.StackMapFrameHandler.Default.TranslationMode.ENTRY or Advice.StackMapFrameHandler.Default.TranslationMode.EXIT.public void translateFrame(MethodVisitor methodVisitor, int type, int localVariableLength, Object[] localVariable, int stackSize, Object[] stack)
Advice.StackMapFrameHandlertranslateFrame in interface Advice.StackMapFrameHandlermethodVisitor - 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.StackMapFrameHandlerinjectHandlerFrame in interface Advice.StackMapFrameHandlermethodVisitor - The method visitor to write the frame to.public void injectCompletionFrame(MethodVisitor methodVisitor, boolean secondary)
Advice.StackMapFrameHandlerinjectCompletionFrame in interface Advice.StackMapFrameHandlermethodVisitor - The method visitor to write the frame to.secondary - true if the frame is written a second time.Copyright © 2014–2016. All rights reserved.