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.element
enum ElementKind

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

public final enum ElementKind
extends Enum

The {@code kind} of an element.

Note that it is possible additional element kinds will be added to accommodate new, currently unknown, language structures added to future versions of the Java™ programming language.


Field Summary
static ElementKind ANNOTATION_TYPE
          An annotation type.
static ElementKind CLASS
          A class not described by a more specific kind (like ).
static ElementKind CONSTRUCTOR
          A constructor.
static ElementKind ENUM
          An enum type.
static ElementKind ENUM_CONSTANT
          An enum constant.
static ElementKind EXCEPTION_PARAMETER
          A parameter of an exception handler.
static ElementKind FIELD
          A field not described by a more specific kind (like ).
static ElementKind INSTANCE_INIT
          An instance initializer.
static ElementKind INTERFACE
          An interface not described by a more specific kind (like ).
static ElementKind LOCAL_VARIABLE
          A local variable.
static ElementKind METHOD
          A method.
static ElementKind OTHER
          An implementation-reserved element.
static ElementKind PACKAGE
          A package.
static ElementKind PARAMETER
          A parameter of a method or constructor.
static ElementKind STATIC_INIT
          A static initializer.
static ElementKind TYPE_PARAMETER
          A type parameter.
 
Method Summary
 boolean

          Returns if this is a kind of class: either or .
 boolean

          Returns if this is a kind of field: either or .
 boolean

          Returns if this is a kind of interface: either or .
static ElementKind

          
static ElementKind[]

          
 
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

ANNOTATION_TYPE

public static final ElementKind ANNOTATION_TYPE
An annotation type.

CLASS

public static final ElementKind CLASS
A class not described by a more specific kind (like {@code ENUM}).

CONSTRUCTOR

public static final ElementKind CONSTRUCTOR
A constructor.

ENUM

public static final ElementKind ENUM
An enum type.

ENUM_CONSTANT

public static final ElementKind ENUM_CONSTANT
An enum constant.

EXCEPTION_PARAMETER

public static final ElementKind EXCEPTION_PARAMETER
A parameter of an exception handler.

FIELD

public static final ElementKind FIELD
A field not described by a more specific kind (like {@code ENUM_CONSTANT}).

INSTANCE_INIT

public static final ElementKind INSTANCE_INIT
An instance initializer.

INTERFACE

public static final ElementKind INTERFACE
An interface not described by a more specific kind (like {@code ANNOTATION_TYPE}).

LOCAL_VARIABLE

public static final ElementKind LOCAL_VARIABLE
A local variable.

METHOD

public static final ElementKind METHOD
A method.

OTHER

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

PACKAGE

public static final ElementKind PACKAGE
A package.

PARAMETER

public static final ElementKind PARAMETER
A parameter of a method or constructor.

STATIC_INIT

public static final ElementKind STATIC_INIT
A static initializer.

TYPE_PARAMETER

public static final ElementKind TYPE_PARAMETER
A type parameter.
Method Detail

isClass

public boolean isClass()
Returns {@code true} if this is a kind of class: either {@code CLASS} or {@code ENUM}.

Returns:
{@code true} if this is a kind of class

isField

public boolean isField()
Returns {@code true} if this is a kind of field: either {@code FIELD} or {@code ENUM_CONSTANT}.

Returns:
{@code true} if this is a kind of field

isInterface

public boolean isInterface()
Returns {@code true} if this is a kind of interface: either {@code INTERFACE} or {@code ANNOTATION_TYPE}.

Returns:
{@code true} if this is a kind of interface

valueOf

public static ElementKind valueOf(String name)
Parameters:
name

values

public static ElementKind[] 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/.