entities
Class Enumerator
java.lang.Object
entities.Enumerator
- public class Enumerator
- extends java.lang.Object
The Enumerator class represents the information about the type
enumeration
Constructor Summary |
Enumerator(java.lang.String name,
java.util.Vector values,
java.lang.String file,
int position)
Construct an Enumerator object |
Method Summary |
java.lang.String |
getFile()
|
java.lang.String |
getName()
|
int |
getPosition()
|
java.util.Vector |
getValues()
|
void |
print(java.lang.String indentation)
Print all information in a Enumerator objects |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Enumerator
public Enumerator(java.lang.String name,
java.util.Vector values,
java.lang.String file,
int position)
- Construct an Enumerator object
- Parameters:
name
- Name of the Enumeratorvalues
- The Vector of String objects corresponding to the valuesfile
- A String corresponding to the declaration fileposition
- The line of "enum" in the file
getName
public java.lang.String getName()
- Returns:
- The String representing the name
getValues
public java.util.Vector getValues()
- Returns:
- The Vector of String objects each one corresponding to a
value
getFile
public java.lang.String getFile()
- Returns:
- The String containing the declaration file
getPosition
public int getPosition()
- Returns:
- The position of the word "enum" in the file (the line)
print
public void print(java.lang.String indentation)
- Print all information in a Enumerator objects
- Parameters:
indentation
- String containing blank characters to use as
indentation