Package net.bytebuddy.asm
Class Advice.Dispatcher.SuppressionHandler.Suppressing.Bound
- java.lang.Object
-
- net.bytebuddy.asm.Advice.Dispatcher.SuppressionHandler.Suppressing.Bound
-
- All Implemented Interfaces:
Advice.Dispatcher.SuppressionHandler.Bound
- Enclosing class:
- Advice.Dispatcher.SuppressionHandler.Suppressing
protected static class Advice.Dispatcher.SuppressionHandler.Suppressing.Bound extends java.lang.Object implements Advice.Dispatcher.SuppressionHandler.Bound
An active, bound suppression handler.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Bound(TypeDescription suppressedType, StackManipulation exceptionHandler)
Creates a new active, bound suppression handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onEnd(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.ReturnValueProducer returnValueProducer)
Invoked at the end of a method.void
onEndSkipped(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.ReturnValueProducer returnValueProducer)
Invoked at the end of a method.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.
-
-
-
Constructor Detail
-
Bound
protected Bound(TypeDescription suppressedType, StackManipulation exceptionHandler)
Creates a new active, bound suppression handler.- Parameters:
suppressedType
- The suppressed throwable type.exceptionHandler
- The stack manipulation to apply within a suppression handler.
-
-
Method Detail
-
onPrepare
public void onPrepare(org.objectweb.asm.MethodVisitor methodVisitor)
Description copied from interface:Advice.Dispatcher.SuppressionHandler.Bound
Invoked to prepare the suppression handler, i.e. to write an exception handler entry if appropriate.- Specified by:
onPrepare
in interfaceAdvice.Dispatcher.SuppressionHandler.Bound
- Parameters:
methodVisitor
- The method visitor to apply the preparation to.
-
onStart
public void onStart(org.objectweb.asm.MethodVisitor methodVisitor)
Description copied from interface:Advice.Dispatcher.SuppressionHandler.Bound
Invoked at the start of a method.- Specified by:
onStart
in interfaceAdvice.Dispatcher.SuppressionHandler.Bound
- Parameters:
methodVisitor
- The method visitor of the instrumented method.
-
onEnd
public void onEnd(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.ReturnValueProducer returnValueProducer)
Description copied from interface:Advice.Dispatcher.SuppressionHandler.Bound
Invoked at the end of a method.- Specified by:
onEnd
in interfaceAdvice.Dispatcher.SuppressionHandler.Bound
- 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.returnValueProducer
- A producer for defining a default return value of the advised method.
-
onEndSkipped
public void onEndSkipped(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.ReturnValueProducer returnValueProducer)
Description copied from interface:Advice.Dispatcher.SuppressionHandler.Bound
Invoked at the end of a method. Additionally indicates that the handler block should be surrounding by a skipping instruction. This method is always followed by a stack map frame (if it is required for the class level and class writer setting).- Specified by:
onEndSkipped
in interfaceAdvice.Dispatcher.SuppressionHandler.Bound
- 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.returnValueProducer
- A producer for defining a default return value of the advised method.
-
-