|
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.Object java.lang.Enum<TypeKind> javax.lang.model.type.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 | |
---|---|
ARRAY
An array type. |
|
BOOLEAN
The primitive type boolean . |
|
BYTE
The primitive type byte . |
|
CHAR
The primitive type char . |
|
DECLARED
A class or interface type. |
|
DOUBLE
The primitive type double . |
|
ERROR
A class or interface type that could not be resolved. |
|
EXECUTABLE
A method, constructor, or initializer. |
|
FLOAT
The primitive type float . |
|
INT
The primitive type int . |
|
LONG
The primitive type long . |
|
NONE
A pseudo-type used where no actual type is appropriate. |
|
NULL
The null type. |
|
OTHER
An implementation-reserved type. |
|
PACKAGE
A pseudo-type corresponding to a package element. |
|
SHORT
The primitive type short . |
|
TYPEVAR
A type variable. |
|
VOID
The pseudo-type corresponding to the keyword void . |
|
WILDCARD
A wildcard type argument. |
Method Summary | |
---|---|
boolean |
isPrimitive()
Returns true if this kind corresponds to a primitive
type and false otherwise. |
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
.
NoType
public static final TypeKind NONE
NoType
public 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
NoType
public 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 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.