Enum AnnotationValue.Sort
- java.lang.Object
-
- java.lang.Enum<AnnotationValue.Sort>
-
- net.bytebuddy.description.annotation.AnnotationValue.Sort
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AnnotationValue.Sort>
- Enclosing interface:
- AnnotationValue<T,S>
public static enum AnnotationValue.Sort extends java.lang.Enum<AnnotationValue.Sort>
Represents the sort of anAnnotationValue
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNOTATION
AAnnotation
-typed property.ARRAY
An array-typed property.BOOLEAN
Aboolean
-typed property.BYTE
Abyte
-typed property.CHARACTER
Achar
-typed property.DOUBLE
Adouble
-typed property.ENUMERATION
AEnum
-typed property.FLOAT
Afloat
-typed property.INTEGER
Anint
-typed property.LONG
Along
-typed property.NONE
A property without a well-defined value.SHORT
Ashort
-typed property.STRING
AString
-typed property.TYPE
AClass
-typed property.
-
Field Summary
Fields Modifier and Type Field Description private int
tag
The property's tag.
-
Constructor Summary
Constructors Modifier Constructor Description private
Sort(int tag)
Creates a new sort.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getTag()
Returns the property's tag.boolean
isDefined()
Returnstrue
if the property is defined.static AnnotationValue.Sort
of(TypeDefinition typeDefinition)
Resolves a sort for the provided type definition.static AnnotationValue.Sort
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final AnnotationValue.Sort BOOLEAN
Aboolean
-typed property.
-
BYTE
public static final AnnotationValue.Sort BYTE
Abyte
-typed property.
-
SHORT
public static final AnnotationValue.Sort SHORT
Ashort
-typed property.
-
CHARACTER
public static final AnnotationValue.Sort CHARACTER
Achar
-typed property.
-
INTEGER
public static final AnnotationValue.Sort INTEGER
Anint
-typed property.
-
LONG
public static final AnnotationValue.Sort LONG
Along
-typed property.
-
FLOAT
public static final AnnotationValue.Sort FLOAT
Afloat
-typed property.
-
DOUBLE
public static final AnnotationValue.Sort DOUBLE
Adouble
-typed property.
-
STRING
public static final AnnotationValue.Sort STRING
AString
-typed property.
-
TYPE
public static final AnnotationValue.Sort TYPE
AClass
-typed property.
-
ENUMERATION
public static final AnnotationValue.Sort ENUMERATION
AEnum
-typed property.
-
ANNOTATION
public static final AnnotationValue.Sort ANNOTATION
AAnnotation
-typed property.
-
ARRAY
public static final AnnotationValue.Sort ARRAY
An array-typed property.
-
NONE
public static final AnnotationValue.Sort NONE
A property without a well-defined value.
-
-
Method Detail
-
values
public static AnnotationValue.Sort[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AnnotationValue.Sort c : AnnotationValue.Sort.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnnotationValue.Sort valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
of
public static AnnotationValue.Sort of(TypeDefinition typeDefinition)
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.
-
-