| Enum Constant and Description |
|---|
ARRAY
E.g.
|
CLASS
E.g.
|
PARAMETERIZED_TYPE
E.g.
|
PRIMITIVE
E.g.
|
TYPE_VARIABLE
E.g.
|
VOID
E.g.
|
WILDCARD_TYPE
E.g.
|
| Modifier and Type | Method and Description |
|---|---|
static Type.Kind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Type.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type.Kind VOID
void.public static final Type.Kind PRIMITIVE
int.public static final Type.Kind CLASS
String.public static final Type.Kind ARRAY
int[] or String[][].public static final Type.Kind PARAMETERIZED_TYPE
List<String>.public static final Type.Kind TYPE_VARIABLE
T and T is a type parameter of the declaring class.public static final Type.Kind WILDCARD_TYPE
List<? extends Number>. The kind of such type is PARAMETERIZED_TYPE,
but the first (and only) type argument is a WILDCARD_TYPE.public static Type.Kind[] values()
for (Type.Kind c : Type.Kind.values()) System.out.println(c);
public static Type.Kind 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