public static enum AnnotationValue.Sort extends Enum<AnnotationValue.Sort>
AnnotationValue
.Enum Constant and Description |
---|
ANNOTATION
A
Annotation -typed property. |
ARRAY
An array-typed property.
|
BOOLEAN
A
boolean -typed property. |
BYTE
A
byte -typed property. |
CHARACTER
A
char -typed property. |
DOUBLE
A
double -typed property. |
ENUMERATION
A
Enum -typed property. |
FLOAT
A
float -typed property. |
INTEGER
An
int -typed property. |
LONG
A
long -typed property. |
NONE
A property without a well-defined value.
|
SHORT
A
short -typed property. |
STRING
A
String -typed property. |
TYPE
A
Class -typed property. |
Modifier and Type | Method and Description |
---|---|
protected int |
getTag()
Returns the property's tag.
|
boolean |
isDefined()
Returns
true if the property is defined. |
static AnnotationValue.Sort |
of(TypeDefinition typeDefinition)
Resolves a sort for the provided type definition.
|
static AnnotationValue.Sort |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnnotationValue.Sort[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnnotationValue.Sort BOOLEAN
boolean
-typed property.public static final AnnotationValue.Sort BYTE
byte
-typed property.public static final AnnotationValue.Sort SHORT
short
-typed property.public static final AnnotationValue.Sort CHARACTER
char
-typed property.public static final AnnotationValue.Sort INTEGER
int
-typed property.public static final AnnotationValue.Sort LONG
long
-typed property.public static final AnnotationValue.Sort FLOAT
float
-typed property.public static final AnnotationValue.Sort DOUBLE
double
-typed property.public static final AnnotationValue.Sort STRING
String
-typed property.public static final AnnotationValue.Sort TYPE
Class
-typed property.public static final AnnotationValue.Sort ENUMERATION
Enum
-typed property.public static final AnnotationValue.Sort ANNOTATION
Annotation
-typed property.public static final AnnotationValue.Sort ARRAY
public static final AnnotationValue.Sort NONE
public static AnnotationValue.Sort[] values()
for (AnnotationValue.Sort c : AnnotationValue.Sort.values()) System.out.println(c);
public static AnnotationValue.Sort 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 static AnnotationValue.Sort of(TypeDefinition typeDefinition)
typeDefinition
- The type definition to resolve.protected int getTag()
public boolean isDefined()
true
if the property is defined.true
if the property is defined.Copyright © 2014–2024. All rights reserved.