Enum AnnotationDescription.RenderingDispatcher
- java.lang.Object
-
- java.lang.Enum<AnnotationDescription.RenderingDispatcher>
-
- net.bytebuddy.description.annotation.AnnotationDescription.RenderingDispatcher
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AnnotationDescription.RenderingDispatcher>
- Enclosing interface:
- AnnotationDescription
public static enum AnnotationDescription.RenderingDispatcher extends java.lang.Enum<AnnotationDescription.RenderingDispatcher>
A rendering dispatcher is responsible for resolving annotation descriptions toString
representations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JAVA_14_CAPABLE_VM
A rendering dispatcher for Java 14 onward.LEGACY_VM
A rendering dispatcher for any VM previous to Java 14.
-
Field Summary
Fields Modifier and Type Field Description static AnnotationDescription.RenderingDispatcher
CURRENT
The rendering dispatcher for the current VM.
-
Constructor Summary
Constructors Modifier Constructor Description private
RenderingDispatcher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendPrefix(java.lang.StringBuilder toString, java.lang.String key, int count)
Appends the key property prefix to a string builder representing an annotation's string representation.static AnnotationDescription.RenderingDispatcher
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AnnotationDescription.RenderingDispatcher[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEGACY_VM
public static final AnnotationDescription.RenderingDispatcher LEGACY_VM
A rendering dispatcher for any VM previous to Java 14.
-
JAVA_14_CAPABLE_VM
public static final AnnotationDescription.RenderingDispatcher JAVA_14_CAPABLE_VM
A rendering dispatcher for Java 14 onward.
-
-
Field Detail
-
CURRENT
public static final AnnotationDescription.RenderingDispatcher CURRENT
The rendering dispatcher for the current VM.
-
-
Method Detail
-
values
public static AnnotationDescription.RenderingDispatcher[] 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 (AnnotationDescription.RenderingDispatcher c : AnnotationDescription.RenderingDispatcher.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnnotationDescription.RenderingDispatcher 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
-
appendPrefix
public void appendPrefix(java.lang.StringBuilder toString, java.lang.String key, int count)
Appends the key property prefix to a string builder representing an annotation's string representation.- Parameters:
toString
- TheObject.toString()
representation of the annotation being handled.key
- The key's name.count
- The property count.
-
-