| Modifier and Type | Class and Description |
|---|---|
protected class |
Advice.FrameTranslator.Bound
A frame translator that is bound to an advice method.
|
| Modifier | Constructor and Description |
|---|---|
protected |
FrameTranslator(MethodDescription.InDefinedShape instrumentedMethod,
TypeList intermediateTypes)
Creates a new frame translator.
|
| Modifier and Type | Method and Description |
|---|---|
protected Advice.FrameTranslator.Bound |
bindEntry(MethodDescription.InDefinedShape methodDescription)
Binds this frame translator to an advice method.
|
protected Advice.FrameTranslator.Bound |
bindExit(MethodDescription.InDefinedShape methodDescription,
TypeDescription enterType)
Binds this frame translator to an advice method.
|
protected int |
compoundLocalVariableSize(int localVariableLength)
Computes the compound local variable length of the instrumented method.
|
protected int |
compoundStackSize(int stackSize)
Computes the compound stack size of the instrumented method.
|
protected void |
injectCompletionFrame(MethodVisitor methodVisitor)
Injects a frame that describes the method after completion.
|
protected void |
injectHandlerFrame(MethodVisitor methodVisitor)
Injects a frame that describes the method when entering its surrounding exception handler.
|
String |
toString() |
protected void |
translateFrame(MethodVisitor methodVisitor,
int type,
int localVariableLength,
Object[] localVariable,
int stackSize,
Object[] stack)
Translates an existing frame.
|
protected FrameTranslator(MethodDescription.InDefinedShape instrumentedMethod, TypeList intermediateTypes)
instrumentedMethod - The instrumented method.intermediateTypes - A list of intermediate types to be considered as part of the instrumented method's steady signature.protected Advice.FrameTranslator.Bound bindEntry(MethodDescription.InDefinedShape methodDescription)
methodDescription - The advice method.protected Advice.FrameTranslator.Bound bindExit(MethodDescription.InDefinedShape methodDescription, TypeDescription enterType)
methodDescription - The advice method.enterType - The type that is returned by the enter method, if any.protected int compoundStackSize(int stackSize)
stackSize - The stack size of the instrumented method without instrumentation.protected int compoundLocalVariableSize(int localVariableLength)
localVariableLength - The local variable length of the instrumented method without instrumentation.protected void injectHandlerFrame(MethodVisitor methodVisitor)
methodVisitor - The method visitor to write the frame to.protected void injectCompletionFrame(MethodVisitor methodVisitor)
methodVisitor - The method visitor to write the frame to.protected void translateFrame(MethodVisitor methodVisitor, int type, int localVariableLength, Object[] localVariable, int stackSize, Object[] stack)
methodVisitor - The method visitor to append the frame to.type - The type of method frame.localVariableLength - The number of local variables of the original frame.localVariable - An array containing the local variable types.stackSize - The size of the current operand stack.stack - An array containing the types on the operand stack.Copyright © 2014–2016. All rights reserved.