From 0f1055b8d7f97d86c66fa602c17666bc2ff9c437 Mon Sep 17 00:00:00 2001 From: Constantin Jucovschi Date: Tue, 31 Mar 2009 06:18:54 -0400 Subject: Initial commit --- src/grammar/GeneralCondenseExpr.java | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/grammar/GeneralCondenseExpr.java (limited to 'src/grammar/GeneralCondenseExpr.java') 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.toXML() + ""; + result += using.toXML(); + + return result; + } + +} -- cgit