1
2
3
4
5 package com.unitesk.atp.treedl;
6
7 import com.unitesk.atp.treedl.TDL.*;
8
9 public class TDL_NodeFactory implements com.unitesk.atp.treedl.TDL_Factory
10 {
11 public Module createModule
12 ( String optDocomment
13 , java.util.Properties optProperties
14 , com.unitesk.atp.text.location.Position position
15 , boolean isTree
16 , QID name
17 , java.util.List
18 , java.util.List
19 , Code optHeader
20 , Code optBody
21 , java.util.List
22 )
23 {
24 return new Module
25 ( optDocomment
26 , optProperties
27 , position
28 , isTree
29 , name
30 , optBaseModuleList
31 , optBaseCustomTypeList
32 , optHeader
33 , optBody
34 , optMemberList
35 );
36 }
37
38 public BaseModule createBaseModule
39 ( ID optSynonym
40 , QID name
41 )
42 {
43 return new BaseModule
44 ( optSynonym
45 , name
46 );
47 }
48
49 public ConstTypeDecl createConstTypeDecl
50 ( String optDocomment
51 , java.util.Properties optProperties
52 , com.unitesk.atp.text.location.Position position
53 , ID name
54 , TypeRef optBaseType
55 , boolean isFlags
56 , java.util.List
57 )
58 {
59 return new ConstTypeDecl
60 ( optDocomment
61 , optProperties
62 , position
63 , name
64 , optBaseType
65 , isFlags
66 , optConstantList
67 );
68 }
69
70 public NodeTypeDecl createNodeTypeDecl
71 ( String optDocomment
72 , java.util.Properties optProperties
73 , com.unitesk.atp.text.location.Position position
74 , ID name
75 , TypeRef optBaseType
76 , boolean isAbstract
77 , boolean isRoot
78 , java.util.List
79 , java.util.List
80 )
81 {
82 return new NodeTypeDecl
83 ( optDocomment
84 , optProperties
85 , position
86 , name
87 , optBaseType
88 , isAbstract
89 , isRoot
90 , optBaseCustomTypeList
91 , optMemberList
92 );
93 }
94
95 public ConstructorCodeMember createConstructorCodeMember
96 ( String optDocomment
97 , java.util.Properties optProperties
98 , com.unitesk.atp.text.location.Position position
99 , String code
100 )
101 {
102 return new ConstructorCodeMember
103 ( optDocomment
104 , optProperties
105 , position
106 , code
107 );
108 }
109
110 public BodyCodeMember createBodyCodeMember
111 ( String optDocomment
112 , java.util.Properties optProperties
113 , com.unitesk.atp.text.location.Position position
114 , String code
115 )
116 {
117 return new BodyCodeMember
118 ( optDocomment
119 , optProperties
120 , position
121 , code
122 );
123 }
124
125 public Field createField
126 ( String optDocomment
127 , java.util.Properties optProperties
128 , com.unitesk.atp.text.location.Position position
129 , boolean isChild
130 , Modifiers modifiers
131 , Type type
132 , ID name
133 , Code optInitCode
134 , Code optGetCode
135 , Code optSetCode
136 )
137 {
138 return new Field
139 ( optDocomment
140 , optProperties
141 , position
142 , isChild
143 , modifiers
144 , type
145 , name
146 , optInitCode
147 , optGetCode
148 , optSetCode
149 );
150 }
151
152 public OperationDecl createOperationDecl
153 ( String optDocomment
154 , java.util.Properties optProperties
155 , com.unitesk.atp.text.location.Position position
156 , ID name
157 , boolean isVirtual
158 , Type returnType
159 , java.util.List
160 , java.util.List
161 , java.util.List
162 )
163 {
164 return new OperationDecl
165 ( optDocomment
166 , optProperties
167 , position
168 , name
169 , isVirtual
170 , returnType
171 , optParameterDeclList
172 , optOperationRefList
173 , optCaseList
174 );
175 }
176
177 public NonVirtualParameterDecl createNonVirtualParameterDecl
178 ( ID name
179 , Type type
180 )
181 {
182 return new NonVirtualParameterDecl
183 ( name
184 , type
185 );
186 }
187
188 public VirtualParameterDecl createVirtualParameterDecl
189 ( ID name
190 , TypeRef type
191 )
192 {
193 return new VirtualParameterDecl
194 ( name
195 , type
196 );
197 }
198
199 public OperationRef createOperationRef
200 ( ID optModuleName
201 , ID name
202 )
203 {
204 return new OperationRef
205 ( optModuleName
206 , name
207 );
208 }
209
210 public Case createCase
211 ( java.util.List
212 , Code code
213 )
214 {
215 return new Case
216 ( caseSignatureList
217 , code
218 );
219 }
220
221 public CaseSignature createCaseSignature
222 ( String optDocomment
223 , java.util.Properties optProperties
224 , com.unitesk.atp.text.location.Position position
225 , java.util.List
226 )
227 {
228 return new CaseSignature
229 ( optDocomment
230 , optProperties
231 , position
232 , parameterList
233 );
234 }
235
236 public Parameter createParameter
237 ( TypeRef optType
238 , ID name
239 )
240 {
241 return new Parameter
242 ( optType
243 , name
244 );
245 }
246
247 public NodeType createNodeType
248 ( Cardinality cardinality
249 , TypeRef type
250 )
251 {
252 return new NodeType
253 ( cardinality
254 , type
255 );
256 }
257
258 public PredefinedType createPredefinedType
259 ( Cardinality cardinality
260 , PredefinedTypeKind kind
261 )
262 {
263 return new PredefinedType
264 ( cardinality
265 , kind
266 );
267 }
268
269 public NameType createNameType
270 ( Cardinality cardinality
271 , String name
272 )
273 {
274 return new NameType
275 ( cardinality
276 , name
277 );
278 }
279
280 public TypeRef createTypeRef
281 ( ID optModuleName
282 , ID name
283 )
284 {
285 return new TypeRef
286 ( optModuleName
287 , name
288 );
289 }
290
291 public ID createID
292 ( com.unitesk.atp.text.location.Position position
293 , String value
294 , com.unitesk.atp.tree.tool.antlr.LinkedToken token
295 )
296 {
297 return new ID
298 ( position
299 , value
300 , token
301 );
302 }
303
304 public QID createQID
305 ( java.util.List
306 {
307 return new QID
308 ( idList );
309 }
310
311 public Code createCode
312 ( String optDocomment
313 , java.util.Properties optProperties
314 , com.unitesk.atp.text.location.Position position
315 , String code
316 )
317 {
318 return new Code
319 ( optDocomment
320 , optProperties
321 , position
322 , code
323 );
324 }
325
326 }