public enum TypeKind extends Enum<TypeKind>
These correspond to the constants in TypeKind
. However, that
enum is not available on Android and a warning is produced. So this enum is used instead.
Enum Constant and Description |
---|
ARRAY
Corresponds to
TypeKind.ARRAY types. |
BOOLEAN
Corresponds to
TypeKind.BOOLEAN types. |
BYTE
Corresponds to
TypeKind.BYTE types. |
CHAR
Corresponds to
TypeKind.CHAR types. |
DECLARED
Corresponds to
TypeKind.DECLARED types. |
DOUBLE
Corresponds to
TypeKind.DOUBLE types. |
ERROR
Corresponds to
TypeKind.ERROR types. |
EXECUTABLE
Corresponds to
TypeKind.EXECUTABLE types. |
FLOAT
Corresponds to
TypeKind.FLOAT types. |
INT
Corresponds to
TypeKind.INT types. |
INTERSECTION
Corresponds to
TypeKind.INTERSECTION types. |
LONG
Corresponds to
TypeKind.LONG types. |
NONE
Corresponds to
TypeKind.NONE types. |
NULL
Corresponds to
TypeKind.NULL types. |
OTHER
Corresponds to
TypeKind.OTHER types. |
PACKAGE
Corresponds to
TypeKind.PACKAGE types. |
SHORT
Corresponds to
TypeKind.SHORT types. |
TYPEVAR
Corresponds to
TypeKind.TYPEVAR types. |
UNION
Corresponds to
TypeKind.UNION types. |
VOID
Corresponds to
TypeKind.VOID types. |
WILDCARD
Corresponds to
TypeKind.WILDCARD types. |
Modifier and Type | Method and Description |
---|---|
static TypeKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeKind BOOLEAN
TypeKind.BOOLEAN
types.public static final TypeKind BYTE
TypeKind.BYTE
types.public static final TypeKind SHORT
TypeKind.SHORT
types.public static final TypeKind INT
TypeKind.INT
types.public static final TypeKind LONG
TypeKind.LONG
types.public static final TypeKind CHAR
TypeKind.CHAR
types.public static final TypeKind FLOAT
TypeKind.FLOAT
types.public static final TypeKind DOUBLE
TypeKind.DOUBLE
types.public static final TypeKind VOID
TypeKind.VOID
types.public static final TypeKind NONE
TypeKind.NONE
types.public static final TypeKind NULL
TypeKind.NULL
types.public static final TypeKind ARRAY
TypeKind.ARRAY
types.public static final TypeKind DECLARED
TypeKind.DECLARED
types.public static final TypeKind ERROR
TypeKind.ERROR
types.public static final TypeKind TYPEVAR
TypeKind.TYPEVAR
types.public static final TypeKind WILDCARD
TypeKind.WILDCARD
types.public static final TypeKind PACKAGE
TypeKind.PACKAGE
types.public static final TypeKind EXECUTABLE
TypeKind.EXECUTABLE
types.public static final TypeKind OTHER
TypeKind.OTHER
types.public static final TypeKind UNION
TypeKind.UNION
types.public static final TypeKind INTERSECTION
TypeKind.INTERSECTION
types.public static TypeKind[] values()
for (TypeKind c : TypeKind.values()) System.out.println(c);
public static TypeKind 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 null