Enum Class TypeKind
- All Implemented Interfaces:
Serializable
,Comparable<TypeKind>
,Constable
Specifies kinds of types.
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.
- See the Checker Framework Manual:
- Declaratively specifying default
annotations
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCorresponds toTypeKind.ARRAY
types.Corresponds toTypeKind.BOOLEAN
types.Corresponds toTypeKind.BYTE
types.Corresponds toTypeKind.CHAR
types.Corresponds toTypeKind.DECLARED
types.Corresponds toTypeKind.DOUBLE
types.Corresponds toTypeKind.ERROR
types.Corresponds toTypeKind.EXECUTABLE
types.Corresponds toTypeKind.FLOAT
types.Corresponds toTypeKind.INT
types.Corresponds toTypeKind.INTERSECTION
types.Corresponds toTypeKind.LONG
types.Corresponds toTypeKind.NONE
types.Corresponds toTypeKind.NULL
types.Corresponds toTypeKind.OTHER
types.Corresponds toTypeKind.PACKAGE
types.Corresponds toTypeKind.SHORT
types.Corresponds toTypeKind.TYPEVAR
types.Corresponds toTypeKind.UNION
types.Corresponds toTypeKind.VOID
types.Corresponds toTypeKind.WILDCARD
types. -
Method Summary
-
Enum Constant Details
-
BOOLEAN
Corresponds toTypeKind.BOOLEAN
types. -
BYTE
Corresponds toTypeKind.BYTE
types. -
SHORT
Corresponds toTypeKind.SHORT
types. -
INT
Corresponds toTypeKind.INT
types. -
LONG
Corresponds toTypeKind.LONG
types. -
CHAR
Corresponds toTypeKind.CHAR
types. -
FLOAT
Corresponds toTypeKind.FLOAT
types. -
DOUBLE
Corresponds toTypeKind.DOUBLE
types. -
VOID
Corresponds toTypeKind.VOID
types. -
NONE
Corresponds toTypeKind.NONE
types. -
NULL
Corresponds toTypeKind.NULL
types. -
ARRAY
Corresponds toTypeKind.ARRAY
types. -
DECLARED
Corresponds toTypeKind.DECLARED
types. -
ERROR
Corresponds toTypeKind.ERROR
types. -
TYPEVAR
Corresponds toTypeKind.TYPEVAR
types. -
WILDCARD
Corresponds toTypeKind.WILDCARD
types. -
PACKAGE
Corresponds toTypeKind.PACKAGE
types. -
EXECUTABLE
Corresponds toTypeKind.EXECUTABLE
types. -
OTHER
Corresponds toTypeKind.OTHER
types. -
UNION
Corresponds toTypeKind.UNION
types. -
INTERSECTION
Corresponds toTypeKind.INTERSECTION
types.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-