This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.lang.model.type
enum TypeKind

java.lang.Object extended by java.lang.Enum extended by javax.lang.model.type.TypeKind
All Implemented Interfaces:
Serializable, Comparable

public final enum TypeKind
extends Enum

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.


Field Summary
static TypeKind ARRAY
          An array type.
static TypeKind BOOLEAN
          The primitive type .
static TypeKind BYTE
          The primitive type .
static TypeKind CHAR
          The primitive type .
static TypeKind DECLARED
          A class or interface type.
static TypeKind DOUBLE
          The primitive type .
static TypeKind ERROR
          A class or interface type that could not be resolved.
static TypeKind EXECUTABLE
          A method, constructor, or initializer.
static TypeKind FLOAT
          The primitive type .
static TypeKind INT
          The primitive type .
static TypeKind LONG
          The primitive type .
static TypeKind NONE
          A pseudo-type used where no actual type is appropriate.
static TypeKind NULL
          The null type.
static TypeKind OTHER
          An implementation-reserved type.
static TypeKind PACKAGE
          A pseudo-type corresponding to a package element.
static TypeKind SHORT
          The primitive type .
static TypeKind TYPEVAR
          A type variable.
static TypeKind VOID
          The pseudo-type corresponding to the keyword .
static TypeKind WILDCARD
          A wildcard type argument.
 
Method Summary
 boolean

          Returns if this kind corresponds to a primitive type and otherwise.
static TypeKind

          
static TypeKind[]

          
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARRAY

public static final TypeKind ARRAY
An array type.

BOOLEAN

public static final TypeKind BOOLEAN
The primitive type {@code boolean}.

BYTE

public static final TypeKind BYTE
The primitive type {@code byte}.

CHAR

public static final TypeKind CHAR
The primitive type {@code char}.

DECLARED

public static final TypeKind DECLARED
A class or interface type.

DOUBLE

public static final TypeKind DOUBLE
The primitive type {@code double}.

ERROR

public static final TypeKind ERROR
A class or interface type that could not be resolved.

EXECUTABLE

public static final TypeKind EXECUTABLE
A method, constructor, or initializer.

FLOAT

public static final TypeKind FLOAT
The primitive type {@code float}.

INT

public static final TypeKind INT
The primitive type {@code int}.

LONG

public static final TypeKind LONG
The primitive type {@code long}.

NONE

public static final TypeKind NONE
A pseudo-type used where no actual type is appropriate.

NULL

public static final TypeKind NULL
The null type.

OTHER

public static final TypeKind OTHER
An implementation-reserved type. This is not the type you are looking for.

PACKAGE

public static final TypeKind PACKAGE
A pseudo-type corresponding to a package element.

SHORT

public static final TypeKind SHORT
The primitive type {@code short}.

TYPEVAR

public static final TypeKind TYPEVAR
A type variable.

VOID

public static final TypeKind VOID
The pseudo-type corresponding to the keyword {@code void}.

WILDCARD

public static final TypeKind WILDCARD
A wildcard type argument.
Method Detail

isPrimitive

public boolean isPrimitive()
Returns {@code true} if this kind corresponds to a primitive type and {@code false} otherwise.

Returns:
{@code true} if this kind corresponds to a primitive type

valueOf

public static TypeKind valueOf(String name)
Parameters:
name

values

public static TypeKind[] values()


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.