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 ANNOTATIONAAnnotation-typed property.ARRAYAn array-typed property.BOOLEANAboolean-typed property.BYTEAbyte-typed property.CHARACTERAchar-typed property.DOUBLEAdouble-typed property.ENUMERATIONAEnum-typed property.FLOATAfloat-typed property.INTEGERAnint-typed property.LONGAlong-typed property.NONEA property without a well-defined value.SHORTAshort-typed property.STRINGAString-typed property.TYPEAClass-typed property.
-
Field Summary
Fields Modifier and Type Field Description private inttagThe property's tag.
-
Constructor Summary
Constructors Modifier Constructor Description privateSort(int tag)Creates a new sort.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetTag()Returns the property's tag.booleanisDefined()Returnstrueif the property is defined.static AnnotationValue.Sortof(TypeDefinition typeDefinition)Resolves a sort for the provided type definition.static AnnotationValue.SortvalueOf(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()
Returnstrueif the property is defined.- Returns:
trueif the property is defined.
-
-