API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.lang.model.element. ElementKind View Source
Author(s)
Joseph D. Darcy
Scott Seligman
Peter von der Ahé
Since
1.6
Version
1.4 06/08/02
Serial
Hierarchy
 Object
      Enum
          ElementKind
Implements
Subclasses
Description
publicfinal enum ElementKind
  The kind of an element.
See also:    Element
Enum Constants
PACKAGE
A package.
ENUM
An enum type.
CLASS
A class not described by a more specific kind (like ENUM).
ANNOTATION_TYPE
An annotation type.
INTERFACE
An interface not described by a more specific kind (like ANNOTATION_TYPE).
ENUM_CONSTANT
An enum constant.
FIELD
A field not described by a more specific kind (like ENUM_CONSTANT).
PARAMETER
A parameter of a method or constructor.
LOCAL_VARIABLE
A local variable.
EXCEPTION_PARAMETER
A parameter of an exception handler.
METHOD
A method.
CONSTRUCTOR
A constructor.
STATIC_INIT
A static initializer.
INSTANCE_INIT
An instance initializer.
TYPE_PARAMETER
A type parameter.
OTHER
  An implementation-reserved element.
Methods
Hide/Show inherited methods
protectedfinal Object clone () throws CloneNotSupportedException [Inherited From Enum]
  Throws CloneNotSupportedException.
publicfinal int compareTo ( E o) [Inherited From Enum]
  Compares this enum with the specified object for order.
publicfinal boolean equals (Object other) [Inherited From Enum]
  Returns true if the specified object is equal to this enum constant.
protectedfinal void finalize () [Inherited From Enum]
enum classes cannot have finalize methods.
publicfinal Class< E> getDeclaringClass () [Inherited From Enum]
  Returns the Class object corresponding to this enum constant's enum type.
publicfinal int hashCode () [Inherited From Enum]
  Returns a hash code for this enum constant.
public boolean isClass ()
  Returns true if this is a kind of class: either CLASS or ENUM.
public boolean isField ()
  Returns true if this is a kind of field: either FIELD or ENUM_CONSTANT.
public boolean isInterface ()
  Returns true if this is a kind of interface: either INTERFACE or ANNOTATION_TYPE.
publicfinal String name () [Inherited From Enum]
  Returns the name of this enum constant, exactly as declared in its enum declaration.
publicfinal int ordinal () [Inherited From Enum]
  Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).
public String toString () [Inherited From Enum]
  Returns the name of this enum constant, as contained in the declaration.
publicstatic T valueOf (Class< T> enumType, String name) [Inherited From Enum]
  Returns the enum constant of the specified enum type with the specified name.
publicstatic ElementKind valueOf (String name)
publicfinalstatic ElementKind values ()
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar