protected static class Advice.Dispatcher.Inlining.CodeTranslationVisitor.ForMethodExit extends Advice.Dispatcher.Inlining.CodeTranslationVisitor
Advice.Dispatcher.Inlining.CodeTranslationVisitor.ForMethodEnter, Advice.Dispatcher.Inlining.CodeTranslationVisitor.ForMethodExitadviceMethod, argumentHandler, endOfMethod, implementationContext, methodSizeHandler, methodVisitor, stackMapFrameHandlerapi, mv| Modifier | Constructor and Description |
|---|---|
protected |
ForMethodExit(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
MethodDescription instrumentedMethod,
MethodDescription.InDefinedShape adviceMethod,
Map<Integer,Advice.OffsetMapping.Target> offsetMappings,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler)
Creates a code translation visitor for translating exit advice.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getReturnValueOffset()
Resolves the offset of the advice method's local variable.
|
propagateHandler, visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFrame, visitIincInsn, visitInsn, visitMaxs, visitParameter, visitParameterAnnotation, visitTypeAnnotation, visitVarInsnvisitFieldInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeInsnprotected ForMethodExit(MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, MethodDescription instrumentedMethod, MethodDescription.InDefinedShape adviceMethod, Map<Integer,Advice.OffsetMapping.Target> offsetMappings, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler)
methodVisitor - A method visitor for writing the instrumented method's byte code.implementationContext - The implementation context to use.argumentHandler - A handler for accessing values on the local variable array.methodSizeHandler - A handler for computing the method size requirements.stackMapFrameHandler - A handler for translating and injecting stack map frames.instrumentedMethod - The instrumented method.adviceMethod - The advice method.offsetMappings - A mapping of offsets to resolved target offsets in the instrumented method.suppressionHandler - A bound suppression handler that is used for suppressing exceptions of this advice method.relocationHandler - A bound relocation handler that is responsible for considering a non-standard control flow.protected int getReturnValueOffset()
Advice.Dispatcher.Inlining.CodeTranslationVisitorvoid.getReturnValueOffset in class Advice.Dispatcher.Inlining.CodeTranslationVisitorCopyright © 2014–2019. All rights reserved.