|
CS 536 Fall 2007, Project 5 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
ObjectEnum<Type.BaseType>
Type.BaseType
public static enum Type.BaseType
Basic types: int, bool, void, string, or error.
Enum Constant Summary | |
---|---|
BOOL
A boolean. |
|
ERROR
The "type" of an expression that contains a type error. |
|
INT
An integer. |
|
STRING
A string constant. |
|
VOID
The "return" type for a PROC. |
Method Summary | |
---|---|
String |
toString()
Converts this type into String for debugging. |
static Type.BaseType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Type.BaseType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Type.BaseType INT
public static final Type.BaseType BOOL
public static final Type.BaseType VOID
public static final Type.BaseType STRING
public static final Type.BaseType ERROR
Method Detail |
---|
public static final Type.BaseType[] values()
for(Type.BaseType c : Type.BaseType.values()) System.out.println(c);
public static Type.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 namepublic String toString()
toString
in class Enum<Type.BaseType>
|
CS 536 Fall 2007, Project 5 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |