public enum BaseType extends Enum<BaseType> implements PrimitiveType, FieldType
| Enum Constant and Description |
|---|
BOOLEAN |
BYTE |
CHAR |
DOUBLE |
FLOAT |
INT |
LONG |
SHORT |
| Modifier and Type | Method and Description |
|---|---|
static BaseType |
getFromKey(char key)
Gets the
BaseType from the given key. |
char |
getKey()
Gets the type key for this primitive type.
|
static boolean |
isValidBase(char key)
Establishes whether the given key, is a valid base
key.
|
String |
toString() |
static BaseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BaseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfisAssignableFrompublic static final BaseType BYTE
public static final BaseType CHAR
public static final BaseType DOUBLE
public static final BaseType FLOAT
public static final BaseType INT
public static final BaseType LONG
public static final BaseType SHORT
public static final BaseType BOOLEAN
public static BaseType[] values()
for (BaseType c : BaseType.values()) System.out.println(c);
public static BaseType 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 char getKey()
PrimitiveTypegetKey in interface PrimitiveTypepublic static boolean isValidBase(char key)
key - The keytrue if the key represents a base type;
false otherwisepublic static BaseType getFromKey(char key)
BaseType from the given key.getFromKey in interface PrimitiveTypekey - The key