Enum LiteralKind
- All Implemented Interfaces:
- Serializable,- Comparable<LiteralKind>,- java.lang.constant.Constable
Specifies kinds of literal trees.
 
These correspond to the *_LITERAL constants in 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.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionShorthand for all other LiteralKind constants, other than PRIMITIVE.Corresponds toTree.Kind.BOOLEAN_LITERALtrees.Corresponds toTree.Kind.CHAR_LITERALtrees.Corresponds toTree.Kind.DOUBLE_LITERALtrees.Corresponds toTree.Kind.FLOAT_LITERALtrees.Corresponds toTree.Kind.INT_LITERALtrees.Corresponds toTree.Kind.LONG_LITERALtrees.Corresponds toTree.Kind.NULL_LITERALtrees.Shorthand for all primitive LiteralKind constants: INT, LONG, FLOAT, DOUBLE, BOOLEAN, CHAR.Corresponds toTree.Kind.STRING_LITERALtrees.
- 
Method SummaryModifier and TypeMethodDescriptionstatic List<LiteralKind>Returns all LiteralKinds except for ALL and PRIMITIVE (which are shorthands for groups of other LiteralKinds).static List<LiteralKind>Returns the primitiveLiteralKinds: INT, LONG, FLOAT, DOUBLE, BOOLEAN, CHAR.static LiteralKindReturns the enum constant of this type with the specified name.static LiteralKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
NULLCorresponds toTree.Kind.NULL_LITERALtrees.
- 
INTCorresponds toTree.Kind.INT_LITERALtrees.
- 
LONGCorresponds toTree.Kind.LONG_LITERALtrees.
- 
FLOATCorresponds toTree.Kind.FLOAT_LITERALtrees.
- 
DOUBLECorresponds toTree.Kind.DOUBLE_LITERALtrees.
- 
BOOLEANCorresponds toTree.Kind.BOOLEAN_LITERALtrees.
- 
CHARCorresponds toTree.Kind.CHAR_LITERALtrees.
- 
STRINGCorresponds toTree.Kind.STRING_LITERALtrees.
- 
ALLShorthand for all other LiteralKind constants, other than PRIMITIVE.
- 
PRIMITIVEShorthand for all primitive LiteralKind constants: INT, LONG, FLOAT, DOUBLE, BOOLEAN, CHAR.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
allLiteralKindsReturns all LiteralKinds except for ALL and PRIMITIVE (which are shorthands for groups of other LiteralKinds).- Returns:
- list of LiteralKinds except for ALL and PRIMITIVE
 
- 
primitiveLiteralKindsReturns the primitiveLiteralKinds: 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 of LiteralKinds except for NULL and STRING
 
 
-