public static enum AnnotationValue.RenderingDispatcher extends java.lang.Enum<AnnotationValue.RenderingDispatcher>
String representations.| Enum Constant and Description |
|---|
JAVA_9_CAPABLE_VM
A rendering dispatcher for Java 9 onward.
|
LEGACY_VM
A rendering dispatcher for any VM previous to Java 9.
|
| Modifier and Type | Field and Description |
|---|---|
private char |
closingBrace
The closing brace of an array
String representation. |
static AnnotationValue.RenderingDispatcher |
CURRENT
The rendering dispatcher for the current VM.
|
private char |
openingBrace
The opening brace of an array
String representation. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toSourceString(boolean value)
Represents the supplied
boolean value as a String. |
java.lang.String |
toSourceString(byte value)
Represents the supplied
boolean value as a String. |
abstract java.lang.String |
toSourceString(char value)
Represents the supplied
char value as a String. |
abstract java.lang.String |
toSourceString(double value)
Represents the supplied
double value as a String. |
abstract java.lang.String |
toSourceString(float value)
Represents the supplied
float value as a String. |
java.lang.String |
toSourceString(int value)
Represents the supplied
int value as a String. |
java.lang.String |
toSourceString(java.util.List<?> values)
Represents the supplied list elements as a
String. |
abstract java.lang.String |
toSourceString(long value)
Represents the supplied
long value as a String. |
java.lang.String |
toSourceString(short value)
Represents the supplied
short value as a String. |
abstract java.lang.String |
toSourceString(java.lang.String value)
Represents the supplied
String value as a String. |
abstract java.lang.String |
toSourceString(TypeDescription value)
Represents the supplied
TypeDescription value as a String. |
static AnnotationValue.RenderingDispatcher |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AnnotationValue.RenderingDispatcher[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnnotationValue.RenderingDispatcher LEGACY_VM
public static final AnnotationValue.RenderingDispatcher JAVA_9_CAPABLE_VM
public static final AnnotationValue.RenderingDispatcher CURRENT
private final char openingBrace
String representation.private final char closingBrace
String representation.public static AnnotationValue.RenderingDispatcher[] values()
for (AnnotationValue.RenderingDispatcher c : AnnotationValue.RenderingDispatcher.values()) System.out.println(c);
public static AnnotationValue.RenderingDispatcher valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toSourceString(boolean value)
boolean value as a String.value - The boolean value to render.String representation.public java.lang.String toSourceString(byte value)
boolean value as a String.value - The boolean value to render.String representation.public java.lang.String toSourceString(short value)
short value as a String.value - The short value to render.String representation.public abstract java.lang.String toSourceString(char value)
char value as a String.value - The char value to render.String representation.public java.lang.String toSourceString(int value)
int value as a String.value - The int value to render.String representation.public abstract java.lang.String toSourceString(long value)
long value as a String.value - The long value to render.String representation.public abstract java.lang.String toSourceString(float value)
float value as a String.value - The float value to render.String representation.public abstract java.lang.String toSourceString(double value)
double value as a String.value - The double value to render.String representation.public abstract java.lang.String toSourceString(java.lang.String value)
String value as a String.value - The String value to render.String representation.public abstract java.lang.String toSourceString(TypeDescription value)
TypeDescription value as a String.value - The TypeDescription value to render.String representation.public java.lang.String toSourceString(java.util.List<?> values)
String.values - The elements to render where each element is represented by its Object.toString() representation.String representation.