73 } // ctor
74
75 /** This is a shallow copy clone. */
76 public Object clone ()
77 {
78 return new ConstEntry (this);
79 } // clone
80
81 /** Invoke the constant generator.
82 @param symbolTable the symbol table is a hash table whose key is
83 a fully qualified type name and whose value is a SymtabEntry or
84 a subclass of SymtabEntry.
85 @param stream the stream to which the generator should sent its output.
86 @see SymtabEntry */
87 public void generate (Hashtable symbolTable, PrintWriter stream)
88 {
89 constGen.generate (symbolTable, this, stream);
90 } // generate
91
92 /** Access the constant generator.
93 @returns an object which implements the ConstGen interface.
94 @see ConstGen */
95 public Generator generator ()
96 {
97 return constGen;
98 } // generator
99
100 public Expression value ()
101 {
102 return _value;
103 } // value
104
105 public void value (Expression newValue)
106 {
107 _value = newValue;
108 } // value
109
110 static ConstGen constGen;
111 private Expression _value = null;
112 } // class ConstEntry
|
73 } // ctor
74
75 /** This is a shallow copy clone. */
76 public Object clone ()
77 {
78 return new ConstEntry (this);
79 } // clone
80
81 /** Invoke the constant generator.
82 @param symbolTable the symbol table is a hash table whose key is
83 a fully qualified type name and whose value is a SymtabEntry or
84 a subclass of SymtabEntry.
85 @param stream the stream to which the generator should sent its output.
86 @see SymtabEntry */
87 public void generate (Hashtable symbolTable, PrintWriter stream)
88 {
89 constGen.generate (symbolTable, this, stream);
90 } // generate
91
92 /** Access the constant generator.
93 @return an object which implements the ConstGen interface.
94 @see ConstGen */
95 public Generator generator ()
96 {
97 return constGen;
98 } // generator
99
100 public Expression value ()
101 {
102 return _value;
103 } // value
104
105 public void value (Expression newValue)
106 {
107 _value = newValue;
108 } // value
109
110 static ConstGen constGen;
111 private Expression _value = null;
112 } // class ConstEntry
|