Enum TypeKind
- java.lang.Object
-
- java.lang.Enum<TypeKind>
-
- org.checkerframework.framework.qual.TypeKind
-
- All Implemented Interfaces:
Serializable,Comparable<TypeKind>
public enum TypeKind extends Enum<TypeKind>
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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAYCorresponds toTypeKind.ARRAYtypes.BOOLEANCorresponds toTypeKind.BOOLEANtypes.BYTECorresponds toTypeKind.BYTEtypes.CHARCorresponds toTypeKind.CHARtypes.DECLAREDCorresponds toTypeKind.DECLAREDtypes.DOUBLECorresponds toTypeKind.DOUBLEtypes.ERRORCorresponds toTypeKind.ERRORtypes.EXECUTABLECorresponds toTypeKind.EXECUTABLEtypes.FLOATCorresponds toTypeKind.FLOATtypes.INTCorresponds toTypeKind.INTtypes.INTERSECTIONCorresponds toTypeKind.INTERSECTIONtypes.LONGCorresponds toTypeKind.LONGtypes.NONECorresponds toTypeKind.NONEtypes.NULLCorresponds toTypeKind.NULLtypes.OTHERCorresponds toTypeKind.OTHERtypes.PACKAGECorresponds toTypeKind.PACKAGEtypes.SHORTCorresponds toTypeKind.SHORTtypes.TYPEVARCorresponds toTypeKind.TYPEVARtypes.UNIONCorresponds toTypeKind.UNIONtypes.VOIDCorresponds toTypeKind.VOIDtypes.WILDCARDCorresponds toTypeKind.WILDCARDtypes.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeKindvalueOf(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.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final TypeKind BOOLEAN
Corresponds toTypeKind.BOOLEANtypes.
-
BYTE
public static final TypeKind BYTE
Corresponds toTypeKind.BYTEtypes.
-
SHORT
public static final TypeKind SHORT
Corresponds toTypeKind.SHORTtypes.
-
INT
public static final TypeKind INT
Corresponds toTypeKind.INTtypes.
-
LONG
public static final TypeKind LONG
Corresponds toTypeKind.LONGtypes.
-
CHAR
public static final TypeKind CHAR
Corresponds toTypeKind.CHARtypes.
-
FLOAT
public static final TypeKind FLOAT
Corresponds toTypeKind.FLOATtypes.
-
DOUBLE
public static final TypeKind DOUBLE
Corresponds toTypeKind.DOUBLEtypes.
-
VOID
public static final TypeKind VOID
Corresponds toTypeKind.VOIDtypes.
-
NONE
public static final TypeKind NONE
Corresponds toTypeKind.NONEtypes.
-
NULL
public static final TypeKind NULL
Corresponds toTypeKind.NULLtypes.
-
ARRAY
public static final TypeKind ARRAY
Corresponds toTypeKind.ARRAYtypes.
-
DECLARED
public static final TypeKind DECLARED
Corresponds toTypeKind.DECLAREDtypes.
-
ERROR
public static final TypeKind ERROR
Corresponds toTypeKind.ERRORtypes.
-
TYPEVAR
public static final TypeKind TYPEVAR
Corresponds toTypeKind.TYPEVARtypes.
-
WILDCARD
public static final TypeKind WILDCARD
Corresponds toTypeKind.WILDCARDtypes.
-
PACKAGE
public static final TypeKind PACKAGE
Corresponds toTypeKind.PACKAGEtypes.
-
EXECUTABLE
public static final TypeKind EXECUTABLE
Corresponds toTypeKind.EXECUTABLEtypes.
-
OTHER
public static final TypeKind OTHER
Corresponds toTypeKind.OTHERtypes.
-
UNION
public static final TypeKind UNION
Corresponds toTypeKind.UNIONtypes.
-
INTERSECTION
public static final TypeKind INTERSECTION
Corresponds toTypeKind.INTERSECTIONtypes.
-
-
Method Detail
-
values
public static TypeKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TypeKind c : TypeKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-