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.
  • Enum Constant Details

  • 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

      public static Advice.Dispatcher.SuppressionHandler.NoOp valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • bind

      Binds the suppression handler for instrumenting a specific method.
      Specified by:
      bind in interface Advice.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 interface Advice.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 interface Advice.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 interface Advice.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 interface Advice.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.