public static enum AnnotationValue.RenderingDispatcher extends Enum<AnnotationValue.RenderingDispatcher>
String
representations.Enum Constant and Description |
---|
JAVA_14_CAPABLE_VM
A rendering dispatcher for Java 14 onward.
|
JAVA_17_CAPABLE_VM
A rendering dispatcher for Java 17 onward.
|
JAVA_19_CAPABLE_VM
A rendering dispatcher for Java 19 onward.
|
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 |
---|---|
static AnnotationValue.RenderingDispatcher |
CURRENT
The rendering dispatcher for the current VM.
|
Modifier and Type | Method and Description |
---|---|
String |
toArrayErrorString(AnnotationValue.Sort sort)
Resolves a string for representing an inconsistently typed array of an annotation property.
|
String |
toSourceString(boolean value)
Represents the supplied
boolean value as a String . |
String |
toSourceString(byte value)
Represents the supplied
boolean value as a String . |
abstract String |
toSourceString(char value)
Represents the supplied
char value as a String . |
abstract String |
toSourceString(double value)
Represents the supplied
double value as a String . |
abstract String |
toSourceString(float value)
Represents the supplied
float value as a String . |
String |
toSourceString(int value)
Represents the supplied
int value as a String . |
String |
toSourceString(List<?> values)
Represents the supplied list elements as a
String . |
abstract String |
toSourceString(long value)
Represents the supplied
long value as a String . |
String |
toSourceString(short value)
Represents the supplied
short value as a String . |
abstract String |
toSourceString(String value)
|
abstract String |
toSourceString(TypeDescription value)
Represents the supplied
TypeDescription value as a String . |
String |
toTypeErrorString(Class<?> type)
Resolves a type to be represented in an error message for a mismatched type.
|
static AnnotationValue.RenderingDispatcher |
valueOf(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 JAVA_14_CAPABLE_VM
public static final AnnotationValue.RenderingDispatcher JAVA_17_CAPABLE_VM
public static final AnnotationValue.RenderingDispatcher JAVA_19_CAPABLE_VM
public static final AnnotationValue.RenderingDispatcher CURRENT
public static AnnotationValue.RenderingDispatcher[] values()
for (AnnotationValue.RenderingDispatcher c : AnnotationValue.RenderingDispatcher.values()) System.out.println(c);
public static AnnotationValue.RenderingDispatcher valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toSourceString(boolean value)
boolean
value as a String
.value
- The boolean
value to render.String
representation.public String toSourceString(byte value)
boolean
value as a String
.value
- The boolean
value to render.String
representation.public String toSourceString(short value)
short
value as a String
.value
- The short
value to render.String
representation.public abstract String toSourceString(char value)
char
value as a String
.value
- The char
value to render.String
representation.public String toSourceString(int value)
int
value as a String
.value
- The int
value to render.String
representation.public abstract String toSourceString(long value)
long
value as a String
.value
- The long
value to render.String
representation.public abstract String toSourceString(float value)
float
value as a String
.value
- The float
value to render.String
representation.public abstract String toSourceString(double value)
double
value as a String
.value
- The double
value to render.String
representation.public abstract String toSourceString(TypeDescription value)
TypeDescription
value as a String
.value
- The TypeDescription
value to render.String
representation.public String toSourceString(List<?> values)
String
.values
- The elements to render where each element is represented by its Object.toString()
representation.String
representation.public String toArrayErrorString(AnnotationValue.Sort sort)
sort
- The sort of the inconsistent property.Copyright © 2014–2024. All rights reserved.