public static enum MergedAnnotation.Adapt extends Enum<MergedAnnotation.Adapt>
AnnotationAttributes
.Enum Constant and Description |
---|
ANNOTATION_TO_MAP
Adapt nested annotation or annotation arrays to maps rather
than synthesizing the values.
|
CLASS_TO_STRING
Adapt class or class array attributes to strings.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isIn(MergedAnnotation.Adapt... adaptations) |
static MergedAnnotation.Adapt |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MergedAnnotation.Adapt[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static MergedAnnotation.Adapt[] |
values(boolean classToString,
boolean annotationsToMap)
Factory method to create an
MergedAnnotation.Adapt array from a set of boolean flags. |
public static final MergedAnnotation.Adapt CLASS_TO_STRING
public static final MergedAnnotation.Adapt ANNOTATION_TO_MAP
public static MergedAnnotation.Adapt[] values()
for (MergedAnnotation.Adapt c : MergedAnnotation.Adapt.values()) System.out.println(c);
public static MergedAnnotation.Adapt 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 nullprotected final boolean isIn(MergedAnnotation.Adapt... adaptations)
public static MergedAnnotation.Adapt[] values(boolean classToString, boolean annotationsToMap)
MergedAnnotation.Adapt
array from a set of boolean flags.classToString
- if CLASS_TO_STRING
is includedannotationsToMap
- if ANNOTATION_TO_MAP
is includedMergedAnnotation.Adapt
array