Top Description Fields Constructors Methods
org.checkerframework.framework.qual

public final Enum LiteralKind

extends Enum<LiteralKind>
Class Inheritance
Imports
java.util.ArrayList, .Arrays, .List

Specifies kinds of literal trees.

These correspond to the *_LITERAL constants in com.sun.source.tree.Tree.Kind. However, that enum is in the tools.jar which is not on the user's classpath by default. This enum is used by meta-annotations, such as QualifierForLiterals, instead.

Field Summary

Modifier and TypeField and Description
public static final LiteralKind
ALL

Shorthand for all other LiteralKind constants, other than PRIMITIVE.

public static final LiteralKind
public static final LiteralKind
public static final LiteralKind
public static final LiteralKind
public static final LiteralKind
public static final LiteralKind
public static final LiteralKind
public static final LiteralKind
PRIMITIVE

Shorthand for all primitive LiteralKind constants: INT, LONG, FLOAT, DOUBLE, BOOLEAN, CHAR.

public static final LiteralKind

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static List<LiteralKind>

Returns:

list of LiteralKinds except for ALL and PRIMITIVE
allLiteralKinds
()

Returns all LiteralKinds except for ALL and PRIMITIVE (which are shorthands for groups of other LiteralKinds).

public static List<LiteralKind>

Returns:

list of LiteralKinds except for NULL and STRING
primitiveLiteralKinds
()

Returns the primitive LiteralKinds: INT, LONG, FLOAT, DOUBLE, BOOLEAN, CHAR.

public static LiteralKind
public static LiteralKind[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ALLback to summary
public static final LiteralKind ALL

Shorthand for all other LiteralKind constants, other than PRIMITIVE.

BOOLEANback to summary
public static final LiteralKind BOOLEAN

Corresponds to com.sun.source.tree.Tree.Kind#BOOLEAN_LITERAL trees.

CHARback to summary
public static final LiteralKind CHAR

Corresponds to com.sun.source.tree.Tree.Kind#CHAR_LITERAL trees.

DOUBLEback to summary
public static final LiteralKind DOUBLE

Corresponds to com.sun.source.tree.Tree.Kind#DOUBLE_LITERAL trees.

FLOATback to summary
public static final LiteralKind FLOAT

Corresponds to com.sun.source.tree.Tree.Kind#FLOAT_LITERAL trees.

INTback to summary
public static final LiteralKind INT

Corresponds to com.sun.source.tree.Tree.Kind#INT_LITERAL trees.

LONGback to summary
public static final LiteralKind LONG

Corresponds to com.sun.source.tree.Tree.Kind#LONG_LITERAL trees.

NULLback to summary
public static final LiteralKind NULL

Corresponds to com.sun.source.tree.Tree.Kind#NULL_LITERAL trees.

PRIMITIVEback to summary
public static final LiteralKind PRIMITIVE

Shorthand for all primitive LiteralKind constants: INT, LONG, FLOAT, DOUBLE, BOOLEAN, CHAR.

STRINGback to summary
public static final LiteralKind STRING

Corresponds to com.sun.source.tree.Tree.Kind#STRING_LITERAL trees.

Constructor Detail

LiteralKindback to summary
private LiteralKind()

Method Detail

allLiteralKindsback to summary
public static List<LiteralKind> allLiteralKinds()

Returns all LiteralKinds except for ALL and PRIMITIVE (which are shorthands for groups of other LiteralKinds).

Returns:List<LiteralKind>

list of LiteralKinds except for ALL and PRIMITIVE

primitiveLiteralKindsback to summary
public static List<LiteralKind> primitiveLiteralKinds()

Returns the primitive LiteralKinds: INT, LONG, FLOAT, DOUBLE, BOOLEAN, CHAR. This is all LiteralKinds except for NULL, STRING, and ones that are shorthands for groups of other LiteralKinds.

Returns:List<LiteralKind>

list of LiteralKinds except for NULL and STRING

valueOfback to summary
public static LiteralKind valueOf(String name)
valuesback to summary
public static LiteralKind[] values()