Package net.bytebuddy.asm
Enum Advice.Dispatcher.SuppressionHandler.NoOp
- java.lang.Object
-
- java.lang.Enum<Advice.Dispatcher.SuppressionHandler.NoOp>
-
- net.bytebuddy.asm.Advice.Dispatcher.SuppressionHandler.NoOp
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Advice.Dispatcher.SuppressionHandler.NoOp>
,Advice.Dispatcher.SuppressionHandler
,Advice.Dispatcher.SuppressionHandler.Bound
- Enclosing interface:
- Advice.Dispatcher.SuppressionHandler
public static enum Advice.Dispatcher.SuppressionHandler.NoOp extends java.lang.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 interface net.bytebuddy.asm.Advice.Dispatcher.SuppressionHandler
Advice.Dispatcher.SuppressionHandler.Bound, Advice.Dispatcher.SuppressionHandler.NoOp, Advice.Dispatcher.SuppressionHandler.Suppressing
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
NoOp()
-
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.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.static Advice.Dispatcher.SuppressionHandler.NoOp
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Advice.Dispatcher.SuppressionHandler.NoOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Advice.Dispatcher.SuppressionHandler.NoOp INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static Advice.Dispatcher.SuppressionHandler.NoOp[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Advice.Dispatcher.SuppressionHandler.NoOp c : Advice.Dispatcher.SuppressionHandler.NoOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Advice.Dispatcher.SuppressionHandler.NoOp valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
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.
-
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.
-
-