public enum NameableType extends Enum<NameableType>
| Enum Constant and Description |
|---|
CLASS
A property that represents a
Class |
FIELD
A property that represents a
Field |
GENERIC
A nameable type obtained from a
ValueReader |
METHOD
A property that represents a
Method |
| Modifier and Type | Method and Description |
|---|---|
static NameableType |
forPropertyType(PropertyType propertyType)
Returns a NameableType for the corresponding
propertyType, else CLASS. |
static NameableType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NameableType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NameableType CLASS
Classpublic static final NameableType METHOD
Methodpublic static final NameableType FIELD
Fieldpublic static final NameableType GENERIC
ValueReaderpublic static NameableType[] values()
for (NameableType c : NameableType.values()) System.out.println(c);
public static NameableType 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 static NameableType forPropertyType(PropertyType propertyType)
propertyType, else CLASS.Copyright © 2011–2018. All rights reserved.