Package net.bytebuddy.asm
Enum Class Advice.Dispatcher.SuppressionHandler.NoOp
java.lang.Object
java.lang.Enum<Advice.Dispatcher.SuppressionHandler.NoOp>
net.bytebuddy.asm.Advice.Dispatcher.SuppressionHandler.NoOp
- All Implemented Interfaces:
Serializable
,Comparable<Advice.Dispatcher.SuppressionHandler.NoOp>
,Constable
,Advice.Dispatcher.SuppressionHandler
,Advice.Dispatcher.SuppressionHandler.Bound
- Enclosing interface:
Advice.Dispatcher.SuppressionHandler
public static enum Advice.Dispatcher.SuppressionHandler.NoOp
extends Enum<Advice.Dispatcher.SuppressionHandler.NoOp>
implements Advice.Dispatcher.SuppressionHandler, Advice.Dispatcher.SuppressionHandler.Bound
A non-operational suppression handler that does not suppress any method.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher.SuppressionHandler
Advice.Dispatcher.SuppressionHandler.Bound, Advice.Dispatcher.SuppressionHandler.NoOp, Advice.Dispatcher.SuppressionHandler.Suppressing
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind
(StackManipulation exceptionHandler) Binds the suppression handler for instrumenting a specific method.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.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
NoOp
private NoOp()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
bind
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.
-
onPrepare
public void onPrepare(org.objectweb.asm.MethodVisitor methodVisitor) 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) 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, TypeDefinition returnType) 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.returnType
- The return type of the advice method.
-
onEndWithSkip
public 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.- Specified by:
onEndWithSkip
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.returnType
- The return type of the advice method.
-