protected static class Advice.Dispatcher.SuppressionHandler.Suppressing.Bound extends Object implements Advice.Dispatcher.SuppressionHandler.Bound
| 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(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
TypeDefinition returnType)
Invoked at the end of a method.
|
void |
onEndWithSkip(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(MethodVisitor methodVisitor)
Invoked to prepare the suppression handler, i.e.
|
void |
onStart(MethodVisitor methodVisitor)
Invoked at the start of a method.
|
protected Bound(TypeDescription suppressedType, StackManipulation exceptionHandler)
suppressedType - The suppressed throwable type.exceptionHandler - The stack manipulation to apply within a suppression handler.public void onPrepare(MethodVisitor methodVisitor)
onPrepare in interface Advice.Dispatcher.SuppressionHandler.BoundmethodVisitor - The method visitor to apply the preparation to.public void onStart(MethodVisitor methodVisitor)
onStart in interface Advice.Dispatcher.SuppressionHandler.BoundmethodVisitor - The method visitor of the instrumented method.public void onEnd(MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType)
onEnd in interface Advice.Dispatcher.SuppressionHandler.BoundmethodVisitor - 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(MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType)
onEndWithSkip in interface Advice.Dispatcher.SuppressionHandler.BoundmethodVisitor - 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.Copyright © 2014–2019. All rights reserved.