protected static class Advice.Dispatcher.SuppressionHandler.Suppressing.Bound extends java.lang.Object implements Advice.Dispatcher.SuppressionHandler.Bound
Modifier and Type | Field and Description |
---|---|
private org.objectweb.asm.Label |
endOfMethod
A label indicating the end of the method.
|
private StackManipulation |
exceptionHandler
The stack manipulation to apply within a suppression handler.
|
private org.objectweb.asm.Label |
startOfMethod
A label indicating the start of the method.
|
private TypeDescription |
suppressedType
The suppressed throwable type.
|
Modifier | Constructor and Description |
---|---|
protected |
Bound(TypeDescription suppressedType,
StackManipulation exceptionHandler)
Creates a new active, bound suppression handler.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
private final TypeDescription suppressedType
private final StackManipulation exceptionHandler
private final org.objectweb.asm.Label startOfMethod
private final org.objectweb.asm.Label endOfMethod
protected Bound(TypeDescription suppressedType, StackManipulation exceptionHandler)
suppressedType
- The suppressed throwable type.exceptionHandler
- The stack manipulation to apply within a suppression handler.public void onPrepare(org.objectweb.asm.MethodVisitor methodVisitor)
onPrepare
in interface Advice.Dispatcher.SuppressionHandler.Bound
methodVisitor
- The method visitor to apply the preparation to.public void onStart(org.objectweb.asm.MethodVisitor methodVisitor)
onStart
in interface Advice.Dispatcher.SuppressionHandler.Bound
methodVisitor
- The method visitor of the instrumented method.public void onEnd(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType)
onEnd
in interface Advice.Dispatcher.SuppressionHandler.Bound
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.public void onEndWithSkip(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType)
onEndWithSkip
in interface Advice.Dispatcher.SuppressionHandler.Bound
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.