public static enum Advice.Dispatcher.SuppressionHandler.NoOp extends Enum<Advice.Dispatcher.SuppressionHandler.NoOp> implements Advice.Dispatcher.SuppressionHandler, Advice.Dispatcher.SuppressionHandler.Bound
Advice.Dispatcher.SuppressionHandler.Bound, Advice.Dispatcher.SuppressionHandler.NoOp, Advice.Dispatcher.SuppressionHandler.Suppressing
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
Advice.Dispatcher.SuppressionHandler.Bound |
bind(StackManipulation exceptionHandler)
Binds the suppression handler for instrumenting a specific method.
|
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.
|
static Advice.Dispatcher.SuppressionHandler.NoOp |
valueOf(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.
|
public static final Advice.Dispatcher.SuppressionHandler.NoOp INSTANCE
public static Advice.Dispatcher.SuppressionHandler.NoOp[] values()
for (Advice.Dispatcher.SuppressionHandler.NoOp c : Advice.Dispatcher.SuppressionHandler.NoOp.values()) System.out.println(c);
public static Advice.Dispatcher.SuppressionHandler.NoOp valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Advice.Dispatcher.SuppressionHandler.Bound bind(StackManipulation exceptionHandler)
bind
in interface Advice.Dispatcher.SuppressionHandler
exceptionHandler
- The stack manipulation to apply within a suppression handler.public void onPrepare(MethodVisitor methodVisitor)
onPrepare
in interface Advice.Dispatcher.SuppressionHandler.Bound
methodVisitor
- The method visitor to apply the preparation to.public void onStart(MethodVisitor methodVisitor)
onStart
in interface Advice.Dispatcher.SuppressionHandler.Bound
methodVisitor
- 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.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(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.Copyright © 2014–2025. All rights reserved.