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.
| Modifier and Type | Field and Description |
|---|---|
| public static final LiteralKind | ALL
Shorthand for all other LiteralKind constants, other than PRIMITIVE. |
| public static final LiteralKind | BOOLEAN
Corresponds to |
| public static final LiteralKind | CHAR
Corresponds to |
| public static final LiteralKind | DOUBLE
Corresponds to |
| public static final LiteralKind | FLOAT
Corresponds to |
| public static final LiteralKind | INT
Corresponds to |
| public static final LiteralKind | LONG
Corresponds to |
| public static final LiteralKind | NULL
Corresponds to |
| public static final LiteralKind | PRIMITIVE
Shorthand for all primitive LiteralKind constants: INT, LONG, FLOAT, DOUBLE, BOOLEAN, CHAR. |
| public static final LiteralKind | STRING
Corresponds to |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static List | Returns: list of LiteralKinds except for ALL and PRIMITIVEReturns all LiteralKinds except for ALL and PRIMITIVE (which are shorthands for groups of other LiteralKinds). |
| public static List | Returns: list of LiteralKinds except for NULL and STRINGReturns the primitive |
| public static LiteralKind | |
| public static LiteralKind[] |
| ALL | back to summary |
|---|---|
| public static final LiteralKind ALL Shorthand for all other LiteralKind constants, other than PRIMITIVE. | |
| BOOLEAN | back to summary |
|---|---|
| public static final LiteralKind BOOLEAN Corresponds to | |
| CHAR | back to summary |
|---|---|
| public static final LiteralKind CHAR Corresponds to | |
| DOUBLE | back to summary |
|---|---|
| public static final LiteralKind DOUBLE Corresponds to | |
| FLOAT | back to summary |
|---|---|
| public static final LiteralKind FLOAT Corresponds to | |
| INT | back to summary |
|---|---|
| public static final LiteralKind INT Corresponds to | |
| LONG | back to summary |
|---|---|
| public static final LiteralKind LONG Corresponds to | |
| NULL | back to summary |
|---|---|
| public static final LiteralKind NULL Corresponds to | |
| PRIMITIVE | back to summary |
|---|---|
| public static final LiteralKind PRIMITIVE Shorthand for all primitive LiteralKind constants: INT, LONG, FLOAT, DOUBLE, BOOLEAN, CHAR. | |
| STRING | back to summary |
|---|---|
| public static final LiteralKind STRING Corresponds to | |
| LiteralKind | back to summary |
|---|---|
| private LiteralKind() | |
| allLiteralKinds | back to summary |
|---|---|
| public static List Returns all LiteralKinds except for ALL and PRIMITIVE (which are shorthands for groups of other LiteralKinds).
| |
| primitiveLiteralKinds | back to summary |
|---|---|
| public static List Returns the primitive
| |
| valueOf | back to summary |
|---|---|
| public static LiteralKind valueOf(String name) | |
| values | back to summary |
|---|---|
| public static LiteralKind[] values() | |