com.sun.tools.javac.code
Enum Kinds.KindName

java.lang.Object
  extended by java.lang.Enum<Kinds.KindName>
      extended by com.sun.tools.javac.code.Kinds.KindName
All Implemented Interfaces:
Formattable, java.io.Serializable, java.lang.Comparable<Kinds.KindName>
Enclosing class:
Kinds

public static enum Kinds.KindName
extends java.lang.Enum<Kinds.KindName>
implements Formattable


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.tools.javac.api.Formattable
Formattable.LocalizedString
 
Enum Constant Summary
ANNOTATION
           
BOUND
           
CLASS
           
CONSTRUCTOR
           
INTERFACE
           
METHOD
           
PACKAGE
           
STATIC
           
TYPEVAR
           
VAL
           
VAR
           
 
Field Summary
private  java.lang.String name
           
 
Method Summary
 java.lang.String getKind()
          Retrieve a pretty name of this object's kind
 java.lang.String toString()
           
 java.lang.String toString(java.util.Locale locale, Messages messages)
          Used to obtain a localized String representing the object accordingly to a given locale
static Kinds.KindName valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Kinds.KindName[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANNOTATION

public static final Kinds.KindName ANNOTATION

CONSTRUCTOR

public static final Kinds.KindName CONSTRUCTOR

INTERFACE

public static final Kinds.KindName INTERFACE

STATIC

public static final Kinds.KindName STATIC

TYPEVAR

public static final Kinds.KindName TYPEVAR

BOUND

public static final Kinds.KindName BOUND

VAR

public static final Kinds.KindName VAR

VAL

public static final Kinds.KindName VAL

METHOD

public static final Kinds.KindName METHOD

CLASS

public static final Kinds.KindName CLASS

PACKAGE

public static final Kinds.KindName PACKAGE
Field Detail

name

private java.lang.String name
Method Detail

values

public static final Kinds.KindName[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Kinds.KindName c : Kinds.KindName.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Kinds.KindName valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Kinds.KindName>

getKind

public java.lang.String getKind()
Description copied from interface: Formattable
Retrieve a pretty name of this object's kind

Specified by:
getKind in interface Formattable
Returns:
a string representing the object's kind

toString

public java.lang.String toString(java.util.Locale locale,
                                 Messages messages)
Description copied from interface: Formattable
Used to obtain a localized String representing the object accordingly to a given locale

Specified by:
toString in interface Formattable
Parameters:
locale - locale in which the object's representation is to be rendered
messages - messages object used for localization
Returns:
a locale-dependent string representing the object