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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the class transformer wants to transform the given target class.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).Indicates that the transformer has no intention to change the given target class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCEPT
Indicates that the class transformer wants to transform the given target class. -
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
Indicates that the transformer has no intention to change the given target class.
-
-
Constructor Details
-
TransformWillingness
private TransformWillingness()
-
-
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
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 nameNullPointerException- if the argument is null
-