Enum Class AnnotationValue.Sort
- All Implemented Interfaces:
Serializable
,Comparable<AnnotationValue.Sort>
,Constable
- Enclosing interface:
- AnnotationValue<T,
S>
Represents the sort of an
AnnotationValue
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAAnnotation
-typed property.An array-typed property.Aboolean
-typed property.Abyte
-typed property.Achar
-typed property.Adouble
-typed property.AEnum
-typed property.Afloat
-typed property.Anint
-typed property.Along
-typed property.A property without a well-defined value.Ashort
-typed property.AString
-typed property.AClass
-typed property. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
getTag()
Returns the property's tag.boolean
Returnstrue
if the property is defined.static AnnotationValue.Sort
of
(TypeDefinition typeDefinition) Resolves a sort for the provided type definition.static AnnotationValue.Sort
Returns the enum constant of this class with the specified name.static AnnotationValue.Sort[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
Aboolean
-typed property. -
BYTE
Abyte
-typed property. -
SHORT
Ashort
-typed property. -
CHARACTER
Achar
-typed property. -
INTEGER
Anint
-typed property. -
LONG
Along
-typed property. -
FLOAT
Afloat
-typed property. -
DOUBLE
Adouble
-typed property. -
STRING
AString
-typed property. -
TYPE
AClass
-typed property. -
ENUMERATION
AEnum
-typed property. -
ANNOTATION
AAnnotation
-typed property. -
ARRAY
An array-typed property. -
NONE
A property without a well-defined value.
-
-
Field Details
-
tag
private final int tagThe property's tag.
-
-
Constructor Details
-
Sort
private Sort(int tag) Creates a new sort.- Parameters:
tag
- The property's tag.
-
-
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
-
of
Resolves a sort for the provided type definition.- Parameters:
typeDefinition
- The type definition to resolve.- Returns:
- The resolved sort for the provided type definition.
-
getTag
protected int getTag()Returns the property's tag.- Returns:
- The property's tag.
-
isDefined
public boolean isDefined()Returnstrue
if the property is defined.- Returns:
true
if the property is defined.
-