public static enum Kinds.KindName extends Enum<Kinds.KindName> implements Formattable
Formattable.LocalizedString
Enum Constant and Description |
---|
ANNOTATION |
BOUND |
CLASS |
CONSTRUCTOR |
ENUM |
INSTANCE_INIT |
INTERFACE |
METHOD |
PACKAGE |
STATIC |
STATIC_INIT |
TYPEVAR |
VAL |
VAR |
Modifier and Type | Method and Description |
---|---|
String |
getKind()
Retrieve a pretty name of this object's kind
|
String |
toString() |
String |
toString(Locale locale,
Messages messages)
Used to obtain a localized String representing the object accordingly
to a given locale
|
static Kinds.KindName |
valueOf(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 are declared.
|
public static final Kinds.KindName ANNOTATION
public static final Kinds.KindName CONSTRUCTOR
public static final Kinds.KindName INTERFACE
public static final Kinds.KindName ENUM
public static final Kinds.KindName STATIC
public static final Kinds.KindName TYPEVAR
public static final Kinds.KindName BOUND
public static final Kinds.KindName VAR
public static final Kinds.KindName VAL
public static final Kinds.KindName METHOD
public static final Kinds.KindName CLASS
public static final Kinds.KindName STATIC_INIT
public static final Kinds.KindName INSTANCE_INIT
public static final Kinds.KindName PACKAGE
public static Kinds.KindName[] values()
for (Kinds.KindName c : Kinds.KindName.values()) System.out.println(c);
public static Kinds.KindName valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<Kinds.KindName>
public String getKind()
Formattable
getKind
in interface Formattable
public String toString(Locale locale, Messages messages)
Formattable
toString
in interface Formattable
locale
- locale in which the object's representation is to be renderedmessages
- messages object used for localizationCopyright © 2015. All rights reserved.