Package com.sun.tools.corba.ee.idl
Class EnumEntry
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.SymtabEntry
-
- com.sun.tools.corba.ee.idl.EnumEntry
-
public class EnumEntry extends SymtabEntry
This is the symbol table entry for enumerated types.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector<java.lang.String>
_elements
(package private) static EnumGen
enumGen
-
Fields inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
includeStack, maxKey, setEmit
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addElement(java.lang.String element)
Add an element to the list of elements.java.lang.Object
clone()
This is a shallow copy clonejava.util.Vector<java.lang.String>
elements()
Each element of the vector is a String.void
generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)
Invoke the enumerator generator.Generator
generator()
Access the enumerator generator.-
Methods inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
comment, comment, container, container, dynamicVariable, dynamicVariable, emit, emit, enteringInclude, exitingInclude, fullName, getVariableKey, growVars, initDynamicVars, isReferencable, isReferencable, module, module, name, name, repositoryID, repositoryID, sourceFile, sourceFile, type, type, typeName, typeName
-
-
-
-
Field Detail
-
enumGen
static EnumGen enumGen
-
_elements
private java.util.Vector<java.lang.String> _elements
-
-
Constructor Detail
-
EnumEntry
protected EnumEntry()
-
EnumEntry
protected EnumEntry(EnumEntry that)
-
EnumEntry
protected EnumEntry(SymtabEntry that, IDLID clone)
-
-
Method Detail
-
clone
public java.lang.Object clone()
Description copied from class:SymtabEntry
This is a shallow copy clone- Overrides:
clone
in classSymtabEntry
-
generate
public void generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)
Invoke the enumerator generator.- Overrides:
generate
in classSymtabEntry
- Parameters:
symbolTable
- the symbol table is a hash table whose key is a fully qualified type name and whose value is a SymtabEntry or a subclass of SymtabEntry.stream
- the stream to which the generator should sent its output.- See Also:
SymtabEntry
-
generator
public Generator generator()
Access the enumerator generator.- Overrides:
generator
in classSymtabEntry
- Returns:
- an object which implements the EnumGen interface.
- See Also:
EnumGen
-
addElement
public void addElement(java.lang.String element)
Add an element to the list of elements.- Parameters:
element
- new element to add
-
elements
public java.util.Vector<java.lang.String> elements()
Each element of the vector is a String.- Returns:
- a
Vector
or all the elements in the enum
-
-