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/syntaxParser/GeneralCondenseExpr.java | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/syntaxParser/GeneralCondenseExpr.java (limited to 'src/syntaxParser/GeneralCondenseExpr.java') diff --git a/src/syntaxParser/GeneralCondenseExpr.java b/src/syntaxParser/GeneralCondenseExpr.java new file mode 100644 index 0000000..397e36a --- /dev/null +++ b/src/syntaxParser/GeneralCondenseExpr.java @@ -0,0 +1,37 @@ +package syntaxParser; +/** + * GeneralCondenseExpr + * Creation date: (3/3/2003 2:28:43 AM) + * @author: mattia parigiani, Sorin stancu-Mara + */ +class GeneralCondenseExpr implements IParseTreeNode { + + String condenseOpType; + ScalarExpr scalarExpr; + VariableList variables; + BooleanScalarExpr condition; + + public GeneralCondenseExpr(String op, VariableList vars, ScalarExpr val) { + condenseOpType = op; + variables = vars; + scalarExpr = val; + } + + public GeneralCondenseExpr(String op, VariableList vars, BooleanScalarExpr cond, ScalarExpr val) { + condenseOpType = op; + variables = vars; + scalarExpr = val; + condition = cond; + } + + public String toXML(){ + String result = "" + variables.toXML(); + if (condition != null) + result += "" + condition.toXML() + ""; + result += scalarExpr.toXML() + ""; + return result; + } + + + +} -- cgit