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 Details

  • Constructor Details

    • EnumEntry

      protected EnumEntry()
    • EnumEntry

      protected EnumEntry(EnumEntry that)
    • EnumEntry

      protected EnumEntry(SymtabEntry that, IDLID clone)
  • Method Details

    • clone

      public Object clone()
      Description copied from class: SymtabEntry
      This is a shallow copy clone
      Overrides:
      clone in class SymtabEntry
    • generate

      public void generate(Hashtable symbolTable, PrintWriter stream)
      Invoke the enumerator generator.
      Overrides:
      generate in class SymtabEntry
      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:
    • generator

      public Generator generator()
      Access the enumerator generator.
      Overrides:
      generator in class SymtabEntry
      Returns:
      an object which implements the EnumGen interface.
      See Also:
    • addElement

      public void addElement(String element)
      Add an element to the list of elements.
      Parameters:
      element - new element to add
    • elements

      public Vector<String> elements()
      Each element of the vector is a String.
      Returns:
      a Vector or all the elements in the enum