63 super (that, clone);
64 } // ctor
65
66 public Object clone ()
67 {
68 return new AttributeEntry (this);
69 } // clone
70
71 /** Invoke the attribute generator.
72 @param symbolTable the symbol table is a hash table whose key is
73 a fully qualified type name and whose value is a SymtabEntry or
74 a subclass of SymtabEntry.
75 @param stream the stream to which the generator should sent its output.
76 @see SymtabEntry */
77 public void generate (Hashtable symbolTable, PrintWriter stream)
78 {
79 attributeGen.generate (symbolTable, this, stream);
80 } // generate
81
82 /** Access the attribute generator.
83 @returns an object which implements the AttributeGen interface.
84 @see AttributeGen */
85 public Generator generator ()
86 {
87 return attributeGen;
88 } // generator
89
90 /** if true, only a get method will be generated. */
91 public boolean readOnly ()
92 {
93 return _readOnly;
94 } // readOnly
95
96 /** if true, only a get method will be generated. */
97 public void readOnly (boolean readOnly)
98 {
99 _readOnly = readOnly;
100 } // readOnly
101
102 static AttributeGen attributeGen;
103
|
63 super (that, clone);
64 } // ctor
65
66 public Object clone ()
67 {
68 return new AttributeEntry (this);
69 } // clone
70
71 /** Invoke the attribute generator.
72 @param symbolTable the symbol table is a hash table whose key is
73 a fully qualified type name and whose value is a SymtabEntry or
74 a subclass of SymtabEntry.
75 @param stream the stream to which the generator should sent its output.
76 @see SymtabEntry */
77 public void generate (Hashtable symbolTable, PrintWriter stream)
78 {
79 attributeGen.generate (symbolTable, this, stream);
80 } // generate
81
82 /** Access the attribute generator.
83 @return an object which implements the AttributeGen interface.
84 @see AttributeGen */
85 public Generator generator ()
86 {
87 return attributeGen;
88 } // generator
89
90 /** if true, only a get method will be generated. */
91 public boolean readOnly ()
92 {
93 return _readOnly;
94 } // readOnly
95
96 /** if true, only a get method will be generated. */
97 public void readOnly (boolean readOnly)
98 {
99 _readOnly = readOnly;
100 } // readOnly
101
102 static AttributeGen attributeGen;
103
|