Enum Class ClassTransformer.TransformWillingness

java.lang.Object
java.lang.Enum<ClassTransformer.TransformWillingness>
eu.cloudnetservice.wrapper.transform.ClassTransformer.TransformWillingness
All Implemented Interfaces:
Serializable, Comparable<ClassTransformer.TransformWillingness>, Constable
Enclosing interface:
ClassTransformer

public static enum ClassTransformer.TransformWillingness extends Enum<ClassTransformer.TransformWillingness>
The acceptance states of a class transformer for a given class. A transformer can either accept the class to indicate that it wants to transform it, or reject it to leave it as-is.
Since:
4.0
  • Enum Constant Details

    • ACCEPT

      public static final ClassTransformer.TransformWillingness ACCEPT
      Indicates that the class transformer wants to transform the given target class.
    • ACCEPT_ONCE

      public static final ClassTransformer.TransformWillingness ACCEPT_ONCE
      Indicates that the class transformer wants to transform the given target class and has no intention to transform other classes (meaning it will be unregistered and not called anymore).
    • REJECT

      public static final ClassTransformer.TransformWillingness REJECT
      Indicates that the transformer has no intention to change the given target class.
  • Constructor Details

    • TransformWillingness

      private TransformWillingness()
  • Method Details

    • values

      public static ClassTransformer.TransformWillingness[] 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 ClassTransformer.TransformWillingness 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