public static enum TypeReference.AnnotationPosition extends java.lang.Enum<TypeReference.AnnotationPosition>
| Enum Constant and Description |
|---|
ANY
Any position admitting type annotations.
|
LEAF_TYPE
For arrays: the leaf component type, else like MAIN_TYPE.
|
MAIN_TYPE
For arrays: the outermost dimension, for parameterized types the type, for nested types the innermost type.
|
| Modifier and Type | Method and Description |
|---|---|
static TypeReference.AnnotationPosition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TypeReference.AnnotationPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeReference.AnnotationPosition MAIN_TYPE
public static final TypeReference.AnnotationPosition LEAF_TYPE
public static final TypeReference.AnnotationPosition ANY
public static TypeReference.AnnotationPosition[] values()
for (TypeReference.AnnotationPosition c : TypeReference.AnnotationPosition.values()) System.out.println(c);
public static TypeReference.AnnotationPosition valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null