| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TypeKind>
javax.lang.model.type.TypeKind
public enum TypeKind
The kind of a type mirror.
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| Enum Constant Summary | |
|---|---|
| ARRAYAn array type. | |
| BOOLEANThe primitive type boolean. | |
| BYTEThe primitive type byte. | |
| CHARThe primitive type char. | |
| DECLAREDA class or interface type. | |
| DOUBLEThe primitive type double. | |
| ERRORA class or interface type that could not be resolved. | |
| EXECUTABLEA method, constructor, or initializer. | |
| FLOATThe primitive type float. | |
| INTThe primitive type int. | |
| LONGThe primitive type long. | |
| NONEA pseudo-type used where no actual type is appropriate. | |
| NULLThe null type. | |
| OTHERAn implementation-reserved type. | |
| PACKAGEA pseudo-type corresponding to a package element. | |
| SHORTThe primitive type short. | |
| TYPEVARA type variable. | |
| VOIDThe pseudo-type corresponding to the keyword void. | |
| WILDCARDA wildcard type argument. | |
| Method Summary | |
|---|---|
|  boolean | isPrimitive()Returns trueif this kind corresponds to a primitive
 type andfalseotherwise. | 
| static TypeKind | valueOf(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. | 
| Methods inherited from class java.lang.Enum | 
|---|
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
public static final TypeKind BOOLEAN
boolean.
public static final TypeKind BYTE
byte.
public static final TypeKind SHORT
short.
public static final TypeKind INT
int.
public static final TypeKind LONG
long.
public static final TypeKind CHAR
char.
public static final TypeKind FLOAT
float.
public static final TypeKind DOUBLE
double.
public static final TypeKind VOID
void.
NoTypepublic static final TypeKind NONE
NoTypepublic static final TypeKind NULL
public static final TypeKind ARRAY
public static final TypeKind DECLARED
public static final TypeKind ERROR
public static final TypeKind TYPEVAR
public static final TypeKind WILDCARD
public static final TypeKind PACKAGE
NoTypepublic static final TypeKind EXECUTABLE
public static final TypeKind OTHER
| Method Detail | 
|---|
public static TypeKind[] values()
for (TypeKind c : TypeKind.values()) System.out.println(c);
public static TypeKind valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean isPrimitive()
true if this kind corresponds to a primitive
 type and false otherwise.
true if this kind corresponds to a primitive type| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved.