summaryrefslogtreecommitdiffstats
path: root/src/grammar/GeneralCondenseExpr.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/grammar/GeneralCondenseExpr.java')
-rw-r--r--src/grammar/GeneralCondenseExpr.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/grammar/GeneralCondenseExpr.java b/src/grammar/GeneralCondenseExpr.java
new file mode 100644
index 0000000..5a8b791
--- /dev/null
+++ b/src/grammar/GeneralCondenseExpr.java
@@ -0,0 +1,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;
+ }
+
+}