Class Advice.AdviceVisitor.WithExitAdvice.WithoutExceptionHandling
java.lang.Object
org.objectweb.asm.MethodVisitor
net.bytebuddy.utility.visitor.ExceptionTableSensitiveMethodVisitor
net.bytebuddy.asm.Advice.AdviceVisitor
net.bytebuddy.asm.Advice.AdviceVisitor.WithExitAdvice
net.bytebuddy.asm.Advice.AdviceVisitor.WithExitAdvice.WithoutExceptionHandling
- All Implemented Interfaces:
Advice.Dispatcher.RelocationHandler.Relocation
- Enclosing class:
Advice.AdviceVisitor.WithExitAdvice
protected static class Advice.AdviceVisitor.WithExitAdvice.WithoutExceptionHandling
extends Advice.AdviceVisitor.WithExitAdvice
An advice visitor that does not capture exceptions.
-
Nested Class Summary
Nested classes/interfaces inherited from class Advice.AdviceVisitor.WithExitAdvice
Advice.AdviceVisitor.WithExitAdvice.WithExceptionHandling, Advice.AdviceVisitor.WithExitAdvice.WithoutExceptionHandlingNested classes/interfaces inherited from class Advice.AdviceVisitor
Advice.AdviceVisitor.WithExitAdvice, Advice.AdviceVisitor.WithoutExitAdviceNested classes/interfaces inherited from interface Advice.Dispatcher.RelocationHandler.Relocation
Advice.Dispatcher.RelocationHandler.Relocation.ForLabel -
Field Summary
Fields inherited from class Advice.AdviceVisitor.WithExitAdvice
returnHandlerFields inherited from class Advice.AdviceVisitor
argumentHandler, instrumentedMethod, methodExit, methodSizeHandler, stackMapFrameHandlerFields inherited from class org.objectweb.asm.MethodVisitor
api, mv -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWithoutExceptionHandling(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, int writerFlags, int readerFlags) Creates a new advice visitor that does not capture exceptions. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInvoked after the exit advice method has returned.protected voidInvoked when the user method's exception handler (if any) is supposed to be prepared.protected voidInvoked after the user method has returned.protected voidWrites the advice for entering the instrumented method.Methods inherited from class Advice.AdviceVisitor.WithExitAdvice
apply, onUserEnd, onVisitInsnMethods inherited from class Advice.AdviceVisitor
onAfterExceptionTable, onVisitFrame, onVisitIincInsn, onVisitVarInsn, visitLocalVariable, visitLocalVariableAnnotation, visitMaxsMethods inherited from class ExceptionTableSensitiveMethodVisitor
onVisitFieldInsn, onVisitIntInsn, onVisitInvokeDynamicInsn, onVisitJumpInsn, onVisitLabel, onVisitLdcInsn, onVisitLookupSwitchInsn, onVisitMethodInsn, onVisitMethodInsn, onVisitMultiANewArrayInsn, onVisitTableSwitchInsn, onVisitTypeInsn, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitTableSwitchInsn, visitTypeInsn, visitVarInsnMethods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitInsnAnnotation, visitLineNumber, visitParameter, visitParameterAnnotation, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation
-
Constructor Details
-
WithoutExceptionHandling
protected WithoutExceptionHandling(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, int writerFlags, int readerFlags) Creates a new advice visitor that does not capture exceptions.- Parameters:
methodVisitor- The method visitor for the instrumented method.implementationContext- The implementation context to use.assigner- The assigner to use.exceptionHandler- The stack manipulation to apply within a suppression handler.instrumentedType- A description of the instrumented type.instrumentedMethod- A description of the instrumented method.methodEnter- The dispatcher to be used for method enter.methodExit- The dispatcher to be used for method exit.writerFlags- The ASM writer flags that were set.readerFlags- The ASM reader flags that were set.
-
-
Method Details
-
onUserPrepare
protected void onUserPrepare()Description copied from class:Advice.AdviceVisitorInvoked when the user method's exception handler (if any) is supposed to be prepared.- Specified by:
onUserPreparein classAdvice.AdviceVisitor
-
onUserStart
protected void onUserStart()Description copied from class:Advice.AdviceVisitorWrites the advice for entering the instrumented method.- Specified by:
onUserStartin classAdvice.AdviceVisitor
-
onUserReturn
protected void onUserReturn()Description copied from class:Advice.AdviceVisitor.WithExitAdviceInvoked after the user method has returned.- Specified by:
onUserReturnin classAdvice.AdviceVisitor.WithExitAdvice
-
onExitAdviceReturn
protected void onExitAdviceReturn()Description copied from class:Advice.AdviceVisitor.WithExitAdviceInvoked after the exit advice method has returned.- Specified by:
onExitAdviceReturnin classAdvice.AdviceVisitor.WithExitAdvice
-