Enum Class AnnotationDescription.RenderingDispatcher
java.lang.Object
java.lang.Enum<AnnotationDescription.RenderingDispatcher>
net.bytebuddy.description.annotation.AnnotationDescription.RenderingDispatcher
- All Implemented Interfaces:
Serializable
,Comparable<AnnotationDescription.RenderingDispatcher>
,Constable
- Enclosing interface:
- AnnotationDescription
public static enum AnnotationDescription.RenderingDispatcher
extends Enum<AnnotationDescription.RenderingDispatcher>
A rendering dispatcher is responsible for resolving annotation descriptions to
String
representations.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA rendering dispatcher for Java 14 onward.A rendering dispatcher for any VM previous to Java 14. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AnnotationDescription.RenderingDispatcher
The rendering dispatcher for the current VM. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendPrefix
(StringBuilder toString, String key, int count) Appends the key property prefix to a string builder representing an annotation's string representation.Returns 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
-
LEGACY_VM
A rendering dispatcher for any VM previous to Java 14. -
JAVA_14_CAPABLE_VM
A rendering dispatcher for Java 14 onward.
-
-
Field Details
-
CURRENT
The rendering dispatcher for the current VM.
-
-
Constructor Details
-
RenderingDispatcher
private RenderingDispatcher()
-
-
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
-
appendPrefix
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.
-