Package net.bytebuddy.asm
Class Advice.Dispatcher.SuppressionHandler.Suppressing
- java.lang.Object
-
- net.bytebuddy.asm.Advice.Dispatcher.SuppressionHandler.Suppressing
-
- All Implemented Interfaces:
Advice.Dispatcher.SuppressionHandler
- Enclosing interface:
- Advice.Dispatcher.SuppressionHandler
@Enhance public static class Advice.Dispatcher.SuppressionHandler.Suppressing extends java.lang.Object implements Advice.Dispatcher.SuppressionHandler
A suppression handler that suppresses a given throwable type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
Advice.Dispatcher.SuppressionHandler.Suppressing.Bound
An active, bound suppression handler.-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher.SuppressionHandler
Advice.Dispatcher.SuppressionHandler.NoOp, Advice.Dispatcher.SuppressionHandler.Suppressing
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDescription
suppressedType
The suppressed throwable type.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Suppressing(TypeDescription suppressedType)
Creates a new suppressing suppression handler.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Advice.Dispatcher.SuppressionHandler.Bound
bind(StackManipulation exceptionHandler)
Binds the suppression handler for instrumenting a specific method.protected static Advice.Dispatcher.SuppressionHandler
of(TypeDescription suppressedType)
Resolves an appropriate suppression handler.
-
-
-
Field Detail
-
suppressedType
private final TypeDescription suppressedType
The suppressed throwable type.
-
-
Constructor Detail
-
Suppressing
protected Suppressing(TypeDescription suppressedType)
Creates a new suppressing suppression handler.- Parameters:
suppressedType
- The suppressed throwable type.
-
-
Method Detail
-
of
protected static Advice.Dispatcher.SuppressionHandler of(TypeDescription suppressedType)
Resolves an appropriate suppression handler.- Parameters:
suppressedType
- The suppressed type orAdvice.NoExceptionHandler
if no type should be suppressed.- Returns:
- An appropriate suppression handler.
-
bind
public Advice.Dispatcher.SuppressionHandler.Bound bind(StackManipulation exceptionHandler)
Binds the suppression handler for instrumenting a specific method.- Specified by:
bind
in interfaceAdvice.Dispatcher.SuppressionHandler
- Parameters:
exceptionHandler
- The stack manipulation to apply within a suppression handler.- Returns:
- A bound version of the suppression handler.
-
-