1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
|
/**
* Copyright (c) 2014, University of Warsaw
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials provided
* with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package pl.edu.mimuw.cloudatlas.interpreter;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.PrintStream;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.text.ParseException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import pl.edu.mimuw.cloudatlas.interpreter.query.Absyn.Program;
import pl.edu.mimuw.cloudatlas.interpreter.query.Yylex;
import pl.edu.mimuw.cloudatlas.interpreter.query.parser;
import pl.edu.mimuw.cloudatlas.model.PathName;
import pl.edu.mimuw.cloudatlas.model.TypePrimitive;
import pl.edu.mimuw.cloudatlas.model.Value;
import pl.edu.mimuw.cloudatlas.model.ValueBoolean;
import pl.edu.mimuw.cloudatlas.model.ValueContact;
import pl.edu.mimuw.cloudatlas.model.ValueDouble;
import pl.edu.mimuw.cloudatlas.model.ValueDuration;
import pl.edu.mimuw.cloudatlas.model.ValueInt;
import pl.edu.mimuw.cloudatlas.model.ValueList;
import pl.edu.mimuw.cloudatlas.model.ValueSet;
import pl.edu.mimuw.cloudatlas.model.ValueString;
import pl.edu.mimuw.cloudatlas.model.ValueTime;
import pl.edu.mimuw.cloudatlas.model.ZMI;
public class Main {
public static void main(String[] args) throws Exception {
runTest(System.in, System.out, createTestHierarchy2());
}
public static void runTest(InputStream in, PrintStream out, ZMI root) throws Exception {
Scanner scanner = new Scanner(in);
scanner.useDelimiter("\\n");
while(scanner.hasNext()) {
executeQueriesFromSource(root, scanner.next(), out);
}
scanner.close();
}
private static void executeQueriesFromSource(ZMI zmi, String query, PrintStream out) throws Exception {
Yylex lex = new Yylex(new ByteArrayInputStream(query.getBytes()));
Program program = (new parser(lex)).pProgram();
executeQueries(zmi, program, out);
}
public static void executeQueries(ZMI zmi, Program program, PrintStream out) throws Exception {
if(!zmi.getSons().isEmpty()) {
for(ZMI son : zmi.getSons()) {
executeQueries(son, program, out);
}
Interpreter interpreter = new Interpreter(zmi);
try {
List<QueryResult> result = interpreter.interpretProgram(program);
PathName zone = zmi.getPathName();
for(QueryResult r : result) {
out.println(zone + ": " + r);
zmi.getAttributes().addOrChange(r.getName(), r.getValue());
}
} catch(InterpreterException exception) {}
}
}
private static ValueContact createContact(String path, byte ip1, byte ip2, byte ip3, byte ip4)
throws UnknownHostException {
return new ValueContact(new PathName(path), InetAddress.getByAddress(new byte[] {
ip1, ip2, ip3, ip4
}));
}
/* Hierarchy for file tests */
public static ZMI createTestHierarchy() throws ParseException, UnknownHostException {
ValueContact violet07Contact = createContact("/uw/violet07", (byte)10, (byte)1, (byte)1, (byte)10);
ValueContact khaki13Contact = createContact("/uw/khaki13", (byte)10, (byte)1, (byte)1, (byte)38);
ValueContact khaki31Contact = createContact("/uw/khaki31", (byte)10, (byte)1, (byte)1, (byte)39);
ValueContact whatever01Contact = createContact("/uw/whatever01", (byte)82, (byte)111, (byte)52, (byte)56);
ValueContact whatever02Contact = createContact("/uw/whatever02", (byte)82, (byte)111, (byte)52, (byte)57);
List<Value> list;
ZMI root = new ZMI();
root.getAttributes().add("level", new ValueInt(0l));
root.getAttributes().add("name", new ValueString(null));
root.getAttributes().add("owner", new ValueString("/uw/violet07"));
root.getAttributes().add("timestamp", new ValueTime("2012/11/09 20:10:17.342"));
root.getAttributes().add("contacts", new ValueSet(TypePrimitive.CONTACT));
root.getAttributes().add("cardinality", new ValueInt(0l));
ZMI uw = new ZMI(root);
root.addSon(uw);
uw.getAttributes().add("level", new ValueInt(1l));
uw.getAttributes().add("name", new ValueString("uw"));
uw.getAttributes().add("owner", new ValueString("/uw/violet07"));
uw.getAttributes().add("timestamp", new ValueTime("2012/11/09 20:8:13.123"));
uw.getAttributes().add("contacts", new ValueSet(TypePrimitive.CONTACT));
uw.getAttributes().add("cardinality", new ValueInt(0l));
ZMI pjwstk = new ZMI(root);
root.addSon(pjwstk);
pjwstk.getAttributes().add("level", new ValueInt(1l));
pjwstk.getAttributes().add("name", new ValueString("pjwstk"));
pjwstk.getAttributes().add("owner", new ValueString("/pjwstk/whatever01"));
pjwstk.getAttributes().add("timestamp", new ValueTime("2012/11/09 20:8:13.123"));
pjwstk.getAttributes().add("contacts", new ValueSet(TypePrimitive.CONTACT));
pjwstk.getAttributes().add("cardinality", new ValueInt(0l));
ZMI violet07 = new ZMI(uw);
uw.addSon(violet07);
violet07.getAttributes().add("level", new ValueInt(2l));
violet07.getAttributes().add("name", new ValueString("violet07"));
violet07.getAttributes().add("owner", new ValueString("/uw/violet07"));
violet07.getAttributes().add("timestamp", new ValueTime("2012/11/09 18:00:00.000"));
list = Arrays.asList(new Value[] {
khaki31Contact, whatever01Contact
});
violet07.getAttributes().add("contacts", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
violet07.getAttributes().add("cardinality", new ValueInt(1l));
list = Arrays.asList(new Value[] {
violet07Contact,
});
violet07.getAttributes().add("members", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
violet07.getAttributes().add("creation", new ValueTime("2011/11/09 20:8:13.123"));
violet07.getAttributes().add("cpu_usage", new ValueDouble(0.9));
violet07.getAttributes().add("num_cores", new ValueInt(3l));
violet07.getAttributes().add("has_ups", new ValueBoolean(null));
list = Arrays.asList(new Value[] {
new ValueString("tola"), new ValueString("tosia"),
});
violet07.getAttributes().add("some_names", new ValueList(list, TypePrimitive.STRING));
violet07.getAttributes().add("expiry", new ValueDuration(13l, 12l, 0l, 0l, 0l));
ZMI khaki31 = new ZMI(uw);
uw.addSon(khaki31);
khaki31.getAttributes().add("level", new ValueInt(2l));
khaki31.getAttributes().add("name", new ValueString("khaki31"));
khaki31.getAttributes().add("owner", new ValueString("/uw/khaki31"));
khaki31.getAttributes().add("timestamp", new ValueTime("2012/11/09 20:03:00.000"));
list = Arrays.asList(new Value[] {
violet07Contact, whatever02Contact,
});
khaki31.getAttributes().add("contacts", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
khaki31.getAttributes().add("cardinality", new ValueInt(1l));
list = Arrays.asList(new Value[] {
khaki31Contact
});
khaki31.getAttributes().add("members", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
khaki31.getAttributes().add("creation", new ValueTime("2011/11/09 20:12:13.123"));
khaki31.getAttributes().add("cpu_usage", new ValueDouble(null));
khaki31.getAttributes().add("num_cores", new ValueInt(3l));
khaki31.getAttributes().add("has_ups", new ValueBoolean(false));
list = Arrays.asList(new Value[] {
new ValueString("agatka"), new ValueString("beatka"), new ValueString("celina"),
});
khaki31.getAttributes().add("some_names", new ValueList(list, TypePrimitive.STRING));
khaki31.getAttributes().add("expiry", new ValueDuration(-13l, -11l, 0l, 0l, 0l));
ZMI khaki13 = new ZMI(uw);
uw.addSon(khaki13);
khaki13.getAttributes().add("level", new ValueInt(2l));
khaki13.getAttributes().add("name", new ValueString("khaki13"));
khaki13.getAttributes().add("owner", new ValueString("/uw/khaki13"));
khaki13.getAttributes().add("timestamp", new ValueTime("2012/11/09 21:03:00.000"));
list = Arrays.asList(new Value[] {});
khaki13.getAttributes().add("contacts", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
khaki13.getAttributes().add("cardinality", new ValueInt(1l));
list = Arrays.asList(new Value[] {
khaki13Contact,
});
khaki13.getAttributes().add("members", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
khaki13.getAttributes().add("creation", new ValueTime((Long)null));
khaki13.getAttributes().add("cpu_usage", new ValueDouble(0.1));
khaki13.getAttributes().add("num_cores", new ValueInt(null));
khaki13.getAttributes().add("has_ups", new ValueBoolean(true));
list = Arrays.asList(new Value[] {});
khaki13.getAttributes().add("some_names", new ValueList(list, TypePrimitive.STRING));
khaki13.getAttributes().add("expiry", new ValueDuration((Long)null));
ZMI whatever01 = new ZMI(pjwstk);
pjwstk.addSon(whatever01);
whatever01.getAttributes().add("level", new ValueInt(2l));
whatever01.getAttributes().add("name", new ValueString("whatever01"));
whatever01.getAttributes().add("owner", new ValueString("/uw/whatever01"));
whatever01.getAttributes().add("timestamp", new ValueTime("2012/11/09 21:12:00.000"));
list = Arrays.asList(new Value[] {
violet07Contact, whatever02Contact,
});
whatever01.getAttributes().add("contacts", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
whatever01.getAttributes().add("cardinality", new ValueInt(1l));
list = Arrays.asList(new Value[] {
whatever01Contact,
});
whatever01.getAttributes().add("members", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
whatever01.getAttributes().add("creation", new ValueTime("2012/10/18 07:03:00.000"));
whatever01.getAttributes().add("cpu_usage", new ValueDouble(0.1));
whatever01.getAttributes().add("num_cores", new ValueInt(7l));
list = Arrays.asList(new Value[] {
new ValueString("rewrite")
});
whatever01.getAttributes().add("php_modules", new ValueList(list, TypePrimitive.STRING));
ZMI whatever02 = new ZMI(pjwstk);
pjwstk.addSon(whatever02);
whatever02.getAttributes().add("level", new ValueInt(2l));
whatever02.getAttributes().add("name", new ValueString("whatever02"));
whatever02.getAttributes().add("owner", new ValueString("/uw/whatever02"));
whatever02.getAttributes().add("timestamp", new ValueTime("2012/11/09 21:13:00.000"));
list = Arrays.asList(new Value[] {
khaki31Contact, whatever01Contact,
});
whatever02.getAttributes().add("contacts", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
whatever02.getAttributes().add("cardinality", new ValueInt(1l));
list = Arrays.asList(new Value[] {
whatever02Contact,
});
whatever02.getAttributes().add("members", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
whatever02.getAttributes().add("creation", new ValueTime("2012/10/18 07:04:00.000"));
whatever02.getAttributes().add("cpu_usage", new ValueDouble(0.4));
whatever02.getAttributes().add("num_cores", new ValueInt(13l));
list = Arrays.asList(new Value[] {
new ValueString("odbc")
});
whatever02.getAttributes().add("php_modules", new ValueList(list, TypePrimitive.STRING));
return root;
}
/* Hierarchy for assignemnt */
public static ZMI createTestHierarchy2() throws ParseException, UnknownHostException {
// UW1A
ValueContact violet07Contact = createContact("/uw/violet07", (byte)10, (byte)1, (byte)1, (byte)10);
// UW1B
ValueContact khaki13Contact = createContact("/uw/khaki13", (byte)10, (byte)1, (byte)1, (byte)38);
// UW1C
ValueContact khaki31Contact = createContact("/uw/khaki31", (byte)10, (byte)1, (byte)1, (byte)39);
// UW2A
ValueContact violet08Contact = createContact("/uw/violet08", (byte)10, (byte)1, (byte)2, (byte)10);
// UW3A
ValueContact khaki14Contact = createContact("/uw/khaki14", (byte)10, (byte)1, (byte)2, (byte)38);
// UW3B
ValueContact khaki32Contact = createContact("/uw/khaki32", (byte)10, (byte)1, (byte)2, (byte)39);
// PJ2
ValueContact whatever01Contact = createContact("/pjwstk/whatever01", (byte)82, (byte)111, (byte)52, (byte)56);
// PJ1
ValueContact whatever02Contact = createContact("/pjwstk/whatever02", (byte)82, (byte)111, (byte)52, (byte)57);
List<Value> list;
ZMI root = new ZMI();
root.getAttributes().add("level", new ValueInt(0l));
root.getAttributes().add("name", new ValueString(null));
ZMI uw = new ZMI(root);
root.addSon(uw);
uw.getAttributes().add("level", new ValueInt(1l));
uw.getAttributes().add("name", new ValueString("uw"));
ZMI pjwstk = new ZMI(root);
root.addSon(pjwstk);
pjwstk.getAttributes().add("level", new ValueInt(1l));
pjwstk.getAttributes().add("name", new ValueString("pjwstk"));
ZMI violet07 = new ZMI(uw);
uw.addSon(violet07);
violet07.getAttributes().add("level", new ValueInt(2l));
violet07.getAttributes().add("name", new ValueString("violet07"));
violet07.getAttributes().add("owner", new ValueString("/uw/violet07"));
violet07.getAttributes().add("timestamp", new ValueTime("2012/11/09 18:00:00.000"));
list = Arrays.asList(new Value[] {
violet07Contact, khaki31Contact, khaki13Contact
});
violet07.getAttributes().add("contacts", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
violet07.getAttributes().add("cardinality", new ValueInt(1l));
list = Arrays.asList(new Value[] {
violet07Contact, khaki13Contact, khaki31Contact
});
violet07.getAttributes().add("members", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
violet07.getAttributes().add("creation", new ValueTime("2011/11/09 20:8:13.123"));
violet07.getAttributes().add("cpu_usage", new ValueDouble(0.9));
violet07.getAttributes().add("num_cores", new ValueInt(3l));
violet07.getAttributes().add("num_processes", new ValueInt(131l));
violet07.getAttributes().add("has_ups", new ValueBoolean(null));
list = Arrays.asList(new Value[] {
new ValueString("tola"), new ValueString("tosia"),
});
violet07.getAttributes().add("some_names", new ValueList(list, TypePrimitive.STRING));
violet07.getAttributes().add("expiry", new ValueDuration(13l, 12l, 0l, 0l, 0l));
ZMI khaki31 = new ZMI(uw);
uw.addSon(khaki31);
khaki31.getAttributes().add("level", new ValueInt(2l));
khaki31.getAttributes().add("name", new ValueString("khaki31"));
khaki31.getAttributes().add("owner", new ValueString("/uw/khaki31"));
khaki31.getAttributes().add("timestamp", new ValueTime("2012/11/09 20:03:00.000"));
list = Arrays.asList(new Value[] {
violet08Contact
});
khaki31.getAttributes().add("contacts", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
khaki31.getAttributes().add("cardinality", new ValueInt(1l));
list = Arrays.asList(new Value[] {
violet08Contact
});
khaki31.getAttributes().add("members", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
khaki31.getAttributes().add("creation", new ValueTime("2011/11/09 20:12:13.123"));
khaki31.getAttributes().add("cpu_usage", new ValueDouble(null));
khaki31.getAttributes().add("num_cores", new ValueInt(3l));
khaki31.getAttributes().add("num_processes", new ValueInt(124l));
khaki31.getAttributes().add("has_ups", new ValueBoolean(false));
list = Arrays.asList(new Value[] {
new ValueString("agatka"), new ValueString("beatka"), new ValueString("celina"),
});
khaki31.getAttributes().add("some_names", new ValueList(list, TypePrimitive.STRING));
khaki31.getAttributes().add("expiry", new ValueDuration(-13l, -11l, 0l, 0l, 0l));
ZMI khaki13 = new ZMI(uw);
uw.addSon(khaki13);
khaki13.getAttributes().add("level", new ValueInt(2l));
khaki13.getAttributes().add("name", new ValueString("khaki13"));
khaki13.getAttributes().add("owner", new ValueString("/uw/khaki13"));
khaki13.getAttributes().add("timestamp", new ValueTime("2012/11/09 21:03:00.000"));
list = Arrays.asList(new Value[] {
khaki14Contact, khaki32Contact
});
khaki13.getAttributes().add("contacts", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
khaki13.getAttributes().add("cardinality", new ValueInt(1l));
list = Arrays.asList(new Value[] {
khaki32Contact,
});
khaki13.getAttributes().add("members", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
khaki13.getAttributes().add("creation", new ValueTime((Long)null));
khaki13.getAttributes().add("cpu_usage", new ValueDouble(0.1));
khaki13.getAttributes().add("num_cores", new ValueInt(null));
khaki13.getAttributes().add("num_processes", new ValueInt(107l));
khaki13.getAttributes().add("has_ups", new ValueBoolean(true));
list = Arrays.asList(new Value[] {});
khaki13.getAttributes().add("some_names", new ValueList(list, TypePrimitive.STRING));
khaki13.getAttributes().add("expiry", new ValueDuration((Long)null));
ZMI whatever01 = new ZMI(pjwstk);
pjwstk.addSon(whatever01);
whatever01.getAttributes().add("level", new ValueInt(2l));
whatever01.getAttributes().add("name", new ValueString("whatever01"));
whatever01.getAttributes().add("owner", new ValueString("/pjwstk/whatever01"));
whatever01.getAttributes().add("timestamp", new ValueTime("2012/11/09 21:12:00.000"));
list = Arrays.asList(new Value[] {
whatever02Contact,
});
whatever01.getAttributes().add("contacts", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
whatever01.getAttributes().add("cardinality", new ValueInt(1l));
list = Arrays.asList(new Value[] {
whatever02Contact,
});
whatever01.getAttributes().add("members", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
whatever01.getAttributes().add("creation", new ValueTime("2012/10/18 07:03:00.000"));
whatever01.getAttributes().add("cpu_usage", new ValueDouble(0.1));
whatever01.getAttributes().add("num_cores", new ValueInt(7l));
whatever01.getAttributes().add("num_processes", new ValueInt(215l));
list = Arrays.asList(new Value[] {
new ValueString("rewrite")
});
whatever01.getAttributes().add("php_modules", new ValueList(list, TypePrimitive.STRING));
ZMI whatever02 = new ZMI(pjwstk);
pjwstk.addSon(whatever02);
whatever02.getAttributes().add("level", new ValueInt(2l));
whatever02.getAttributes().add("name", new ValueString("whatever02"));
whatever02.getAttributes().add("owner", new ValueString("/pjwstk/whatever02"));
whatever02.getAttributes().add("timestamp", new ValueTime("2012/11/09 21:13:00.000"));
list = Arrays.asList(new Value[] {
whatever01Contact,
});
whatever02.getAttributes().add("contacts", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
whatever02.getAttributes().add("cardinality", new ValueInt(1l));
list = Arrays.asList(new Value[] {
whatever01Contact,
});
whatever02.getAttributes().add("members", new ValueSet(new HashSet<Value>(list), TypePrimitive.CONTACT));
whatever02.getAttributes().add("creation", new ValueTime("2012/10/18 07:04:00.000"));
whatever02.getAttributes().add("cpu_usage", new ValueDouble(0.4));
whatever02.getAttributes().add("num_cores", new ValueInt(13l));
whatever02.getAttributes().add("num_processes", new ValueInt(222l));
list = Arrays.asList(new Value[] {
new ValueString("odbc")
});
whatever02.getAttributes().add("php_modules", new ValueList(list, TypePrimitive.STRING));
return root;
}
}
|