Package net.bytebuddy.asm
Interface Advice.Dispatcher.SuppressionHandler.Bound
- All Known Implementing Classes:
Advice.Dispatcher.SuppressionHandler.NoOp
,Advice.Dispatcher.SuppressionHandler.Suppressing.Bound
- Enclosing interface:
Advice.Dispatcher.SuppressionHandler
public static interface Advice.Dispatcher.SuppressionHandler.Bound
A bound version of a suppression handler that must not be reused.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onEnd
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType) Invoked at the end of a method.void
onEndWithSkip
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType) Invoked at the end of a method if the exception handler should be wrapped in a skipping block.void
onPrepare
(org.objectweb.asm.MethodVisitor methodVisitor) Invoked to prepare the suppression handler, i.e.void
onStart
(org.objectweb.asm.MethodVisitor methodVisitor) Invoked at the start of a method.
-
Method Details
-
onPrepare
void onPrepare(org.objectweb.asm.MethodVisitor methodVisitor) Invoked to prepare the suppression handler, i.e. to write an exception handler entry if appropriate.- Parameters:
methodVisitor
- The method visitor to apply the preparation to.
-
onStart
void onStart(org.objectweb.asm.MethodVisitor methodVisitor) Invoked at the start of a method.- Parameters:
methodVisitor
- The method visitor of the instrumented method.
-
onEnd
void onEnd(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType) Invoked at the end of a method.- Parameters:
methodVisitor
- The method visitor of the instrumented method.implementationContext
- The implementation context to use.methodSizeHandler
- The advice method's method size handler.stackMapFrameHandler
- A handler for translating and injecting stack map frames.returnType
- The return type of the advice method.
-
onEndWithSkip
void onEndWithSkip(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType) Invoked at the end of a method if the exception handler should be wrapped in a skipping block.- Parameters:
methodVisitor
- The method visitor of the instrumented method.implementationContext
- The implementation context to use.methodSizeHandler
- The advice method's method size handler.stackMapFrameHandler
- A handler for translating and injecting stack map frames.returnType
- The return type of the advice method.
-