protected static class Advice.AdviceVisitor.WithExitAdvice.WithExceptionHandling extends Advice.AdviceVisitor.WithExitAdvice
Advice.AdviceVisitor.WithExitAdvice.WithExceptionHandling, Advice.AdviceVisitor.WithExitAdvice.WithoutExceptionHandlingAdvice.AdviceVisitor.WithExitAdvice, Advice.AdviceVisitor.WithoutExitAdvicedoesReturn, returnHandlerinstrumentedMethod, methodExit, methodSizeHandler, methodVisitor, 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 |
onExitAdviceReturn()
Invoked after the exit advice method has returned.
|
protected void |
onUserPrepare()
Invoked when the user method's exception handler (if any) is supposed to be prepared.
|
protected void |
onUserReturn()
Invoked after the user method has returned.
|
protected void |
onUserStart()
Writes the advice for entering the instrumented method.
|
String |
toString() |
apply, onUserEnd, onVisitInsnonAfterExceptionTable, onVisitIincInsn, onVisitVarInsn, variable, variable, visitFrame, visitLocalVariable, visitLocalVariableAnnotation, 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, 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 onExitAdviceReturn()
Advice.AdviceVisitor.WithExitAdviceonExitAdviceReturn in class Advice.AdviceVisitor.WithExitAdviceCopyright © 2014–2016. All rights reserved.