public enum SimpleType extends Enum<SimpleType>
Modifier and Type | Method and Description |
---|---|
static SimpleType |
fromToken(int token) |
int |
getSize() |
static SimpleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleType INT
public static final SimpleType CHAR
public static final SimpleType BOOL
public static final SimpleType VOID
public static SimpleType[] values()
for (SimpleType c : SimpleType.values()) System.out.println(c);
public static SimpleType 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 int getSize()
public static SimpleType fromToken(int token)