protected static class Advice.AdviceVisitor.WithExitAdvice.WithExceptionHandling extends Advice.AdviceVisitor.WithExitAdvice
Advice.AdviceVisitor.WithExitAdvice.WithExceptionHandling, Advice.AdviceVisitor.WithExitAdvice.WithoutExceptionHandlingAdvice.AdviceVisitor.WithExitAdvice, Advice.AdviceVisitor.WithoutExitAdviceendOfMethodinstrumentedMethod, methodExit, methodSizeHandler, stackMapFrameHandlerapi, mv| Modifier | Constructor and Description |
|---|---|
protected |
WithExceptionHandling(MethodVisitor methodVisitor,
MethodDescription.InDefinedShape instrumentedMethod,
Advice.Dispatcher.Resolved.ForMethodEnter methodEnter,
Advice.Dispatcher.Resolved.ForMethodExit methodExit,
ClassFileVersion classFileVersion,
int writerFlags,
int readerFlags,
TypeDescription triggeringThrowable)
Creates a new advice visitor that captures exception by weaving try-catch blocks around user code.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
onAdviceExit()
Invoked on completing the inlining of the exit advice.
|
protected void |
onMethodExit()
Invoked on completing the method's code.
|
protected void |
onUserExit()
Invoked on completing to write the translated user code.
|
protected void |
onUserPrepare()
Invoked when the user method's exception handler (if any) is supposed to be prepared.
|
protected void |
onUserReturn()
Invoked when the user method issues a return statement before applying the exit handler.
|
protected void |
onUserStart()
Writes the advice for entering the instrumented method.
|
String |
toString() |
onUserEnd, onVisitInsnonAfterExceptionTable, onVisitIincInsn, onVisitVarInsn, variable, variable, visitFrame, visitMaxsonVisitFieldInsn, onVisitIntInsn, onVisitInvokeDynamicInsn, onVisitJumpInsn, onVisitLabel, onVisitLdcInsn, onVisitLookupSwitchInsn, onVisitMethodInsn, onVisitMethodInsn, onVisitMultiANewArrayInsn, onVisitTableSwitchInsn, onVisitTypeInsn, visitFieldInsn, visitIincInsn, visitInsn, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitTableSwitchInsn, visitTypeInsn, visitVarInsnvisitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitInsnAnnotation, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitParameter, visitParameterAnnotation, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotationprotected WithExceptionHandling(MethodVisitor methodVisitor, MethodDescription.InDefinedShape instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, ClassFileVersion classFileVersion, int writerFlags, int readerFlags, TypeDescription triggeringThrowable)
methodVisitor - The method visitor for the instrumented method.instrumentedMethod - A description of the instrumented method.methodEnter - The dispatcher to be used for method entry.methodExit - The dispatcher to be used for method exit.classFileVersion - The instrumented type's class file version.writerFlags - The ASM writer flags that were set.readerFlags - The ASM reader flags that were set.triggeringThrowable - The type of the handled throwable type for which this advice is invoked.protected void onUserPrepare()
Advice.AdviceVisitoronUserPrepare in class Advice.AdviceVisitorprotected void onUserStart()
Advice.AdviceVisitoronUserStart in class Advice.AdviceVisitorprotected void onUserReturn()
Advice.AdviceVisitor.WithExitAdviceonUserReturn in class Advice.AdviceVisitor.WithExitAdviceprotected void onUserExit()
Advice.AdviceVisitor.WithExitAdviceonUserExit in class Advice.AdviceVisitor.WithExitAdviceprotected void onAdviceExit()
Advice.AdviceVisitor.WithExitAdviceonAdviceExit in class Advice.AdviceVisitor.WithExitAdviceprotected void onMethodExit()
Advice.AdviceVisitor.WithExitAdviceonMethodExit in class Advice.AdviceVisitor.WithExitAdviceCopyright © 2014–2016. All rights reserved.