74 repositoryID (Util.emptyID);
75 } // ctor
76
77 public Object clone ()
78 {
79 return new StringEntry (this);
80 } // clone
81
82 /** Invoke the string type generator.
83 @param symbolTable the symbol table is a hash table whose key is
84 a fully qualified type name and whose value is a SymtabEntry or
85 a subclass of SymtabEntry.
86 @param stream the stream to which the generator should sent its output.
87 @see SymtabEntry */
88 public void generate (Hashtable symbolTable, PrintWriter stream)
89 {
90 stringGen.generate (symbolTable, this, stream);
91 } // generate
92
93 /** Access the primitive type generator.
94 @returns an object which implements the PrimitiveGen interface.
95 @see PrimitiveGen */
96 public Generator generator ()
97 {
98 return stringGen;
99 } // generator
100
101 /** The constant expression defining the maximum size of the string.
102 If it is null, then the string is unbounded. */
103 public void maxSize (Expression expr)
104 {
105 _maxSize = expr;
106 } // maxSize
107
108 /** The constant expression defining the maximum size of the string.
109 If it is null, then the string is unbounded. */
110 public Expression maxSize ()
111 {
112 return _maxSize;
113 } // maxSize
114
|
74 repositoryID (Util.emptyID);
75 } // ctor
76
77 public Object clone ()
78 {
79 return new StringEntry (this);
80 } // clone
81
82 /** Invoke the string type generator.
83 @param symbolTable the symbol table is a hash table whose key is
84 a fully qualified type name and whose value is a SymtabEntry or
85 a subclass of SymtabEntry.
86 @param stream the stream to which the generator should sent its output.
87 @see SymtabEntry */
88 public void generate (Hashtable symbolTable, PrintWriter stream)
89 {
90 stringGen.generate (symbolTable, this, stream);
91 } // generate
92
93 /** Access the primitive type generator.
94 @return an object which implements the PrimitiveGen interface.
95 @see PrimitiveGen */
96 public Generator generator ()
97 {
98 return stringGen;
99 } // generator
100
101 /** The constant expression defining the maximum size of the string.
102 If it is null, then the string is unbounded. */
103 public void maxSize (Expression expr)
104 {
105 _maxSize = expr;
106 } // maxSize
107
108 /** The constant expression defining the maximum size of the string.
109 If it is null, then the string is unbounded. */
110 public Expression maxSize ()
111 {
112 return _maxSize;
113 } // maxSize
114
|