84 return type().isReferencable() ;
85 }
86
87 public void isReferencable( boolean value )
88 {
89 // NO-OP: this cannot be set for a sequence.
90 }
91
92 /** Invoke the sequence generator.
93 @param symbolTable the symbol table is a hash table whose key is
94 a fully qualified type name and whose value is a SymtabEntry or
95 a subclass of SymtabEntry.
96 @param stream the stream to which the generator should sent its output.
97 @see SymtabEntry */
98 public void generate (Hashtable symbolTable, PrintWriter stream)
99 {
100 sequenceGen.generate (symbolTable, this, stream);
101 } // generate
102
103 /** Access the sequence generator.
104 @returns an object which implements the SequenceGen interface.
105 @see SequenceGen */
106 public Generator generator ()
107 {
108 return sequenceGen;
109 } // generator
110
111 /** the constant expression defining the maximum size of the sequence.
112 If it is null, then the sequence is unbounded. */
113 public void maxSize (Expression expr)
114 {
115 _maxSize = expr;
116 } // maxSize
117
118 /** the constant expression defining the maximum size of the sequence.
119 If it is null, then the sequence is unbounded. */
120 public Expression maxSize ()
121 {
122 return _maxSize;
123 } // maxSize
124
|
84 return type().isReferencable() ;
85 }
86
87 public void isReferencable( boolean value )
88 {
89 // NO-OP: this cannot be set for a sequence.
90 }
91
92 /** Invoke the sequence generator.
93 @param symbolTable the symbol table is a hash table whose key is
94 a fully qualified type name and whose value is a SymtabEntry or
95 a subclass of SymtabEntry.
96 @param stream the stream to which the generator should sent its output.
97 @see SymtabEntry */
98 public void generate (Hashtable symbolTable, PrintWriter stream)
99 {
100 sequenceGen.generate (symbolTable, this, stream);
101 } // generate
102
103 /** Access the sequence generator.
104 @return an object which implements the SequenceGen interface.
105 @see SequenceGen */
106 public Generator generator ()
107 {
108 return sequenceGen;
109 } // generator
110
111 /** the constant expression defining the maximum size of the sequence.
112 If it is null, then the sequence is unbounded. */
113 public void maxSize (Expression expr)
114 {
115 _maxSize = expr;
116 } // maxSize
117
118 /** the constant expression defining the maximum size of the sequence.
119 If it is null, then the sequence is unbounded. */
120 public Expression maxSize ()
121 {
122 return _maxSize;
123 } // maxSize
124
|