protected static class Advice.Dispatcher.Active.CodeTranslationVisitor.ForMethodExit extends Advice.Dispatcher.Active.CodeTranslationVisitor
Advice.Dispatcher.Active.CodeTranslationVisitor.ForMethodEnter, Advice.Dispatcher.Active.CodeTranslationVisitor.ForMethodExit, Advice.Dispatcher.Active.CodeTranslationVisitor.SuppressionHandler
adviseMethod, endOfMethod, instrumentedMethod, metaDataHandler
api, mv
Modifier | Constructor and Description |
---|---|
protected |
ForMethodExit(MethodVisitor methodVisitor,
Advice.MetaDataHandler.ForAdvice metaDataHandler,
MethodDescription.InDefinedShape instrumentedMethod,
MethodDescription.InDefinedShape adviseMethod,
Map<Integer,Advice.Dispatcher.Active.Resolved.OffsetMapping.Target> offsetMappings,
TypeDescription throwableType,
TypeDescription enterType)
Creates a code translation visitor for translating exit advice.
|
Modifier and Type | Method and Description |
---|---|
protected int |
adjust(int offset)
Adjusts the offset of a variable instruction within the advise method such that no arguments to
the instrumented method are overridden.
|
void |
makeDefault(MethodVisitor methodVisitor) |
String |
toString() |
void |
visitInsn(int opcode) |
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFrame, visitIincInsn, visitLineNumber, visitMaxs, visitParameter, visitParameterAnnotation, visitTypeAnnotation, visitVarInsn
visitFieldInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeInsn
protected ForMethodExit(MethodVisitor methodVisitor, Advice.MetaDataHandler.ForAdvice metaDataHandler, MethodDescription.InDefinedShape instrumentedMethod, MethodDescription.InDefinedShape adviseMethod, Map<Integer,Advice.Dispatcher.Active.Resolved.OffsetMapping.Target> offsetMappings, TypeDescription throwableType, TypeDescription enterType)
methodVisitor
- A method visitor for writing the instrumented method's byte code.metaDataHandler
- A handler for translating meta data found in the byte code.instrumentedMethod
- The instrumented method.adviseMethod
- The advise method.offsetMappings
- A mapping of offsets to resolved target offsets in the instrumented method.throwableType
- A throwable type to be suppressed or NoSuppression
if no suppression should be applied.enterType
- The type supplied by the enter method or void
if no enter method type is supplied.public void visitInsn(int opcode)
visitInsn
in class Advice.Dispatcher.Active.CodeTranslationVisitor
protected int adjust(int offset)
Advice.Dispatcher.Active.CodeTranslationVisitor
adjust
in class Advice.Dispatcher.Active.CodeTranslationVisitor
offset
- The original offset.public void makeDefault(MethodVisitor methodVisitor)
Copyright © 2014–2016. All rights reserved.