76 module (module () + "/" + name ());
77 } // ctor
78
79 public Object clone ()
80 {
81 return new UnionEntry (this);
82 } // clone
83
84 /** Invoke the union generator.
85 @param symbolTable the symbol table is a hash table whose key is
86 a fully qualified type name and whose value is a SymtabEntry or
87 a subclass of SymtabEntry.
88 @param stream the stream to which the generator should sent its output.
89 @see SymtabEntry */
90 public void generate (Hashtable symbolTable, PrintWriter stream)
91 {
92 unionGen.generate (symbolTable, this, stream);
93 } // generate
94
95 /** Access the union generator.
96 @returns an object which implements the UnionGen interface.
97 @see UnionGen */
98 public Generator generator ()
99 {
100 return unionGen;
101 } // generator
102
103 public void addBranch (UnionBranch branch)
104 {
105 _branches.addElement (branch);
106 } // addBranch
107
108 /** This is a vector of UnionBranch's. */
109 public Vector branches ()
110 {
111 return _branches;
112 } // branches
113
114 /** This TypedefEntry describes the type and name for the default branch.
115 Like the entries in the branches vector, only the type and name fields
116 are pertinent. */
|
76 module (module () + "/" + name ());
77 } // ctor
78
79 public Object clone ()
80 {
81 return new UnionEntry (this);
82 } // clone
83
84 /** Invoke the union generator.
85 @param symbolTable the symbol table is a hash table whose key is
86 a fully qualified type name and whose value is a SymtabEntry or
87 a subclass of SymtabEntry.
88 @param stream the stream to which the generator should sent its output.
89 @see SymtabEntry */
90 public void generate (Hashtable symbolTable, PrintWriter stream)
91 {
92 unionGen.generate (symbolTable, this, stream);
93 } // generate
94
95 /** Access the union generator.
96 @return an object which implements the UnionGen interface.
97 @see UnionGen */
98 public Generator generator ()
99 {
100 return unionGen;
101 } // generator
102
103 public void addBranch (UnionBranch branch)
104 {
105 _branches.addElement (branch);
106 } // addBranch
107
108 /** This is a vector of UnionBranch's. */
109 public Vector branches ()
110 {
111 return _branches;
112 } // branches
113
114 /** This TypedefEntry describes the type and name for the default branch.
115 Like the entries in the branches vector, only the type and name fields
116 are pertinent. */
|