blob: 5a8b791549413a76afd81f06323efe3afbbbf99d (
plain)
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
|
package grammar;
/** GeneralCondenseExpr
*
* @author Andrei Aiordachioaie
*/
public class GeneralCondenseExpr implements IParseTreeNode
{
CondenseOperationType op;
AxisIteratorList alist;
BooleanScalarExpr where;
ScalarExpr using;
public GeneralCondenseExpr(CondenseOperationType op, AxisIteratorList al)
{
this.op = op;
alist = al;
alist.setTag("iterator");
where = null;
using = null;
}
public void setWhere(BooleanScalarExpr bse)
{
where = bse;
}
public void setUsing(ScalarExpr se)
{
using = se;
}
public String toXML()
{
String result = "";
result += op.toXML();
result += alist.toXML();
if (where != null)
result += "<where>" + where.toXML() + "</where>";
result += using.toXML();
return result;
}
}
|