Public Methods | |
Constant | add (String name) |
Constant | add (String name, int value) |
void | apply (TypeSwitch sw, Object o) |
boolean | compatibleWith (Type type) |
boolean | containsValue (Object value) |
Expr | defaultVal () |
boolean | equals (Object o) |
Vector | getConstants () |
int | getEnumeratedSize () |
int | getFirstElement () |
String | getNameOf (int value) |
int | getValueOf (String name) |
boolean | isKind (int kind) |
String | toString () |
Private Attributes | |
int | minElement |
int | maxElement |
Hashtable | elementName = new Hashtable() |
Hashtable | elementValue = new Hashtable() |
Vector | constants = new Vector() |
Definition at line 44 of file Enumerated.java.
|
Add a new enumeration constant with a given value.
Definition at line 72 of file Enumerated.java. |
|
Add a new enumeration constant (value automatically assigned to be 1 greater than existing maximum).
Definition at line 59 of file Enumerated.java. |
|
Reimplemented from Type. Definition at line 100 of file Enumerated.java. |
|
Get Vector of enumeration Constant's.
Definition at line 115 of file Enumerated.java. Referenced by SmvTypeDecl::caseEnumerated().
|
|
Get size of enumerated type---this is not the number of constants but rather the range of those constants (e.g., size {0,1,4} = 5 ).
Definition at line 122 of file Enumerated.java. Referenced by SmvTypeDecl::caseEnumerated().
|
|
Reimplemented from Type. Definition at line 140 of file Enumerated.java. |