Note that it is possible additional type kinds will be added to accommodate new, currently unknown, language structures added to future versions of the Java programming language.
TypeMirror
| Modifier and Type | Field and Description |
|---|---|
| public static final TypeKind | ARRAY
An array type. |
| public static final TypeKind | BOOLEAN
The primitive type |
| public static final TypeKind | BYTE
The primitive type |
| public static final TypeKind | CHAR
The primitive type |
| public static final TypeKind | DECLARED
A class or interface type. |
| public static final TypeKind | DOUBLE
The primitive type |
| public static final TypeKind | ERROR
A class or interface type that could not be resolved. |
| public static final TypeKind | EXECUTABLE
A method, constructor, or initializer. |
| public static final TypeKind | FLOAT
The primitive type |
| public static final TypeKind | INT
The primitive type |
| public static final TypeKind | INTERSECTION
An intersection type. |
| public static final TypeKind | LONG
The primitive type |
| public static final TypeKind | MODULE
A pseudo-type corresponding to a module element. |
| public static final TypeKind | NONE
A pseudo-type used where no actual type is appropriate. |
| public static final TypeKind | NULL
The null type. |
| public static final TypeKind | OTHER
An implementation-reserved type. |
| public static final TypeKind | PACKAGE
A pseudo-type corresponding to a package element. |
| public static final TypeKind | SHORT
The primitive type |
| public static final TypeKind | TYPEVAR
A type variable. |
| public static final TypeKind | UNION
A union type. |
| public static final TypeKind | VOID
The pseudo-type corresponding to the keyword |
| public static final TypeKind | WILDCARD
A wildcard type argument. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this kind corresponds to a primitive
type and false otherwiseReturns |
| public static TypeKind | |
| public static TypeKind[] |
| ARRAY | back to summary |
|---|---|
| public static final TypeKind ARRAY An array type. | |
| BOOLEAN | back to summary |
|---|---|
| public static final TypeKind BOOLEAN The primitive type | |
| BYTE | back to summary |
|---|---|
| public static final TypeKind BYTE The primitive type | |
| CHAR | back to summary |
|---|---|
| public static final TypeKind CHAR The primitive type | |
| DECLARED | back to summary |
|---|---|
| public static final TypeKind DECLARED A class or interface type. | |
| DOUBLE | back to summary |
|---|---|
| public static final TypeKind DOUBLE The primitive type | |
| ERROR | back to summary |
|---|---|
| public static final TypeKind ERROR A class or interface type that could not be resolved. | |
| EXECUTABLE | back to summary |
|---|---|
| public static final TypeKind EXECUTABLE A method, constructor, or initializer. | |
| FLOAT | back to summary |
|---|---|
| public static final TypeKind FLOAT The primitive type | |
| INT | back to summary |
|---|---|
| public static final TypeKind INT The primitive type | |
| INTERSECTION | back to summary |
|---|---|
| public static final TypeKind INTERSECTION An intersection type.
| |
| LONG | back to summary |
|---|---|
| public static final TypeKind LONG The primitive type | |
| MODULE | back to summary |
|---|---|
| public static final TypeKind MODULE A pseudo-type corresponding to a module element.
| |
| NONE | back to summary |
|---|---|
| public static final TypeKind NONE A pseudo-type used where no actual type is appropriate.
| |
| NULL | back to summary |
|---|---|
| public static final TypeKind NULL The null type. | |
| OTHER | back to summary |
|---|---|
| public static final TypeKind OTHER An implementation-reserved type. This is not the type you are looking for. | |
| PACKAGE | back to summary |
|---|---|
| public static final TypeKind PACKAGE A pseudo-type corresponding to a package element.
| |
| SHORT | back to summary |
|---|---|
| public static final TypeKind SHORT The primitive type | |
| TYPEVAR | back to summary |
|---|---|
| public static final TypeKind TYPEVAR A type variable. | |
| UNION | back to summary |
|---|---|
| public static final TypeKind UNION A union type.
| |
| VOID | back to summary |
|---|---|
| public static final TypeKind VOID The pseudo-type corresponding to the keyword
| |
| WILDCARD | back to summary |
|---|---|
| public static final TypeKind WILDCARD A wildcard type argument. | |
| TypeKind | back to summary |
|---|---|
| private TypeKind() | |
| isPrimitive | back to summary |
|---|---|
| public boolean isPrimitive() Returns
| |
| valueOf | back to summary |
|---|---|
| public static TypeKind valueOf(String name) | |
| values | back to summary |
|---|---|
| public static TypeKind[] values() | |