| Enum Constant and Description |
|---|
CANONICAL_NAME
Tests the name of the class is present as returned by
Class.getCanonicalName(). |
NAME
Tests the name of the class is present as returned by
Class.getName(). |
SIMPLE_NAME
Tests the name of the class is present as returned by
Class.getSimpleName(). |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getName(java.lang.Class<?> clazz) |
static NameStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NameStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NameStyle NAME
Class.getName().public static final NameStyle SIMPLE_NAME
Class.getSimpleName().public static final NameStyle CANONICAL_NAME
Class.getCanonicalName().public static NameStyle[] values()
for (NameStyle c : NameStyle.values()) System.out.println(c);
public static NameStyle valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract java.lang.String getName(java.lang.Class<?> clazz)