public enum NameableType extends Enum<NameableType>
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
public static final NameableType METHOD
public static final NameableType FIELD
public 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-2012. All Rights Reserved.