public static enum Type.Kind extends Enum<Type.Kind>
Enum Constant and Description |
---|
ARRAY
A Java array
|
CLASS
A Java class, interface, or annotation
|
PARAMETERIZED_TYPE
A generic parameterized type
|
PRIMITIVE
A Java primitive (boolean, byte, short, char, int, long, float,
double)
|
TYPE_VARIABLE
A resolved generic type parameter or type argument
|
UNRESOLVED_TYPE_VARIABLE
An unresolved type parameter or argument.
|
VOID
Used to designate a Java method that returns nothing
|
WILDCARD_TYPE
A generic wildcard type.
|
Modifier and Type | Method and Description |
---|---|
static Type.Kind |
fromOrdinal(int ordinal) |
static Type.Kind |
valueOf(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 CLASS
public static final Type.Kind ARRAY
public static final Type.Kind PRIMITIVE
public static final Type.Kind VOID
public static final Type.Kind TYPE_VARIABLE
public static final Type.Kind UNRESOLVED_TYPE_VARIABLE
public static final Type.Kind WILDCARD_TYPE
public static final Type.Kind PARAMETERIZED_TYPE
public static Type.Kind[] values()
for (Type.Kind c : Type.Kind.values()) System.out.println(c);
public static Type.Kind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Type.Kind fromOrdinal(int ordinal)
Copyright © 2018 JBoss by Red Hat. All rights reserved.