Enum Class MethodCall.TerminationHandler.Simple

java.lang.Object
java.lang.Enum<MethodCall.TerminationHandler.Simple>
net.bytebuddy.implementation.MethodCall.TerminationHandler.Simple
All Implemented Interfaces:
Serializable, Comparable<MethodCall.TerminationHandler.Simple>, Constable, MethodCall.TerminationHandler, MethodCall.TerminationHandler.Factory
Enclosing interface:
MethodCall.TerminationHandler

public static enum MethodCall.TerminationHandler.Simple extends Enum<MethodCall.TerminationHandler.Simple> implements MethodCall.TerminationHandler, MethodCall.TerminationHandler.Factory
Simple termination handler implementations.
  • Enum Constant Details

  • Constructor Details

    • Simple

      private Simple()
  • Method Details

    • values

      public static MethodCall.TerminationHandler.Simple[] 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 MethodCall.TerminationHandler.Simple 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
    • make

      public MethodCall.TerminationHandler make(TypeDescription instrumentedType)
      Creates a termination handler for a given instrumented type.
      Specified by:
      make in interface MethodCall.TerminationHandler.Factory
      Parameters:
      instrumentedType - The instrumented type.
      Returns:
      A termination handler to apply for the instrumented type.
    • prepare

      public StackManipulation prepare()
      Returns a preparing stack manipulation to apply prior to the method call.
      Specified by:
      prepare in interface MethodCall.TerminationHandler
      Returns:
      The stack manipulation to apply prior to the method call.