Package net.bytebuddy.build
Enum ToStringPlugin.Enhance.Prefix
- java.lang.Object
-
- java.lang.Enum<ToStringPlugin.Enhance.Prefix>
-
- net.bytebuddy.build.ToStringPlugin.Enhance.Prefix
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ToStringPlugin.Enhance.Prefix>
- Enclosing class:
- ToStringPlugin.Enhance
public static enum ToStringPlugin.Enhance.Prefix extends java.lang.Enum<ToStringPlugin.Enhance.Prefix>
A strategy for defining a prefix.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANONICAL
Determines the use of the canonical class name as a prefix.FULLY_QUALIFIED
Determines the use of a fully qualified class name as a prefix.SIMPLE
Determines the use of the simple class name as a prefix.
-
Field Summary
Fields Modifier and Type Field Description private ToStringMethod.PrefixResolver.Default
prefixResolver
The prefix resolver to use.
-
Constructor Summary
Constructors Modifier Constructor Description private
Prefix(ToStringMethod.PrefixResolver.Default prefixResolver)
Creates a new prefix.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ToStringMethod.PrefixResolver.Default
getPrefixResolver()
Returns the prefix resolver to use.static ToStringPlugin.Enhance.Prefix
valueOf(java.lang.String name)
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 Detail
-
FULLY_QUALIFIED
public static final ToStringPlugin.Enhance.Prefix FULLY_QUALIFIED
Determines the use of a fully qualified class name as a prefix.
-
CANONICAL
public static final ToStringPlugin.Enhance.Prefix CANONICAL
Determines the use of the canonical class name as a prefix.
-
SIMPLE
public static final ToStringPlugin.Enhance.Prefix SIMPLE
Determines the use of the simple class name as a prefix.
-
-
Field Detail
-
prefixResolver
private final ToStringMethod.PrefixResolver.Default prefixResolver
The prefix resolver to use.
-
-
Constructor Detail
-
Prefix
private Prefix(ToStringMethod.PrefixResolver.Default prefixResolver)
Creates a new prefix.- Parameters:
prefixResolver
- The prefix resolver to use.
-
-
Method Detail
-
values
public static ToStringPlugin.Enhance.Prefix[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ToStringPlugin.Enhance.Prefix c : ToStringPlugin.Enhance.Prefix.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ToStringPlugin.Enhance.Prefix valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getPrefixResolver
protected ToStringMethod.PrefixResolver.Default getPrefixResolver()
Returns the prefix resolver to use.- Returns:
- The prefix resolver to use.
-
-