public enum PrimitiveType extends java.lang.Enum<PrimitiveType>
| Enum Constant and Description |
|---|
ARRAY |
BOOLEAN |
BYTE |
CHAR |
DOUBLE |
FLOAT |
INT |
LONG |
OBJECT |
SHORT |
VOID |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLongName() |
java.lang.String |
getShortName() |
boolean |
isObjectOrArray() |
java.lang.String |
toString() |
static PrimitiveType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PrimitiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrimitiveType BOOLEAN
public static final PrimitiveType CHAR
public static final PrimitiveType BYTE
public static final PrimitiveType SHORT
public static final PrimitiveType INT
public static final PrimitiveType FLOAT
public static final PrimitiveType LONG
public static final PrimitiveType DOUBLE
public static final PrimitiveType OBJECT
public static final PrimitiveType ARRAY
public static final PrimitiveType VOID
public static PrimitiveType[] values()
for (PrimitiveType c : PrimitiveType.values()) System.out.println(c);
public static PrimitiveType 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 java.lang.String getShortName()
public java.lang.String getLongName()
public java.lang.String toString()
toString in class java.lang.Enum<PrimitiveType>public boolean isObjectOrArray()