Package net.bytebuddy.build
Enum ToStringPlugin.Enhance.Prefix
- All Implemented Interfaces:
Serializable
,Comparable<ToStringPlugin.Enhance.Prefix>
,java.lang.constant.Constable
- Enclosing class:
ToStringPlugin.Enhance
A strategy for defining a prefix.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDetermines the use of the canonical class name as a prefix.Determines the use of a fully qualified class name as a prefix.Determines the use of the simple class name as a prefix. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ToStringMethod.PrefixResolver.Default
The prefix resolver to use. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Prefix
(ToStringMethod.PrefixResolver.Default prefixResolver) Creates a new prefix. -
Method Summary
Modifier and TypeMethodDescriptionprotected ToStringMethod.PrefixResolver.Default
Returns the prefix resolver to use.Returns the enum constant of this type with the specified name.static ToStringPlugin.Enhance.Prefix[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FULLY_QUALIFIED
Determines the use of a fully qualified class name as a prefix. -
CANONICAL
Determines the use of the canonical class name as a prefix. -
SIMPLE
Determines the use of the simple class name as a prefix.
-
-
Field Details
-
prefixResolver
The prefix resolver to use.
-
-
Constructor Details
-
Prefix
Creates a new prefix.- Parameters:
prefixResolver
- The prefix resolver to use.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getPrefixResolver
Returns the prefix resolver to use.- Returns:
- The prefix resolver to use.
-