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 ConstantsEnum ConstantDescriptionCorresponds toTypeKind.ARRAYtypes.Corresponds toTypeKind.BOOLEANtypes.Corresponds toTypeKind.BYTEtypes.Corresponds toTypeKind.CHARtypes.Corresponds toTypeKind.DECLAREDtypes.Corresponds toTypeKind.DOUBLEtypes.Corresponds toTypeKind.ERRORtypes.Corresponds toTypeKind.EXECUTABLEtypes.Corresponds toTypeKind.FLOATtypes.Corresponds toTypeKind.INTtypes.Corresponds toTypeKind.INTERSECTIONtypes.Corresponds toTypeKind.LONGtypes.Corresponds toTypeKind.NONEtypes.Corresponds toTypeKind.NULLtypes.Corresponds toTypeKind.OTHERtypes.Corresponds toTypeKind.PACKAGEtypes.Corresponds toTypeKind.SHORTtypes.Corresponds toTypeKind.TYPEVARtypes.Corresponds toTypeKind.UNIONtypes.Corresponds toTypeKind.VOIDtypes.Corresponds toTypeKind.WILDCARDtypes. -
Method Summary
-
Enum Constant Details
-
BOOLEAN
Corresponds toTypeKind.BOOLEANtypes. -
BYTE
Corresponds toTypeKind.BYTEtypes. -
SHORT
Corresponds toTypeKind.SHORTtypes. -
INT
Corresponds toTypeKind.INTtypes. -
LONG
Corresponds toTypeKind.LONGtypes. -
CHAR
Corresponds toTypeKind.CHARtypes. -
FLOAT
Corresponds toTypeKind.FLOATtypes. -
DOUBLE
Corresponds toTypeKind.DOUBLEtypes. -
VOID
Corresponds toTypeKind.VOIDtypes. -
NONE
Corresponds toTypeKind.NONEtypes. -
NULL
Corresponds toTypeKind.NULLtypes. -
ARRAY
Corresponds toTypeKind.ARRAYtypes. -
DECLARED
Corresponds toTypeKind.DECLAREDtypes. -
ERROR
Corresponds toTypeKind.ERRORtypes. -
TYPEVAR
Corresponds toTypeKind.TYPEVARtypes. -
WILDCARD
Corresponds toTypeKind.WILDCARDtypes. -
PACKAGE
Corresponds toTypeKind.PACKAGEtypes. -
EXECUTABLE
Corresponds toTypeKind.EXECUTABLEtypes. -
OTHER
Corresponds toTypeKind.OTHERtypes. -
UNION
Corresponds toTypeKind.UNIONtypes. -
INTERSECTION
Corresponds toTypeKind.INTERSECTIONtypes.
-
-
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
-