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/VariableList.java | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/syntaxParser/VariableList.java (limited to 'src/syntaxParser/VariableList.java') diff --git a/src/syntaxParser/VariableList.java b/src/syntaxParser/VariableList.java new file mode 100644 index 0000000..f41d0a7 --- /dev/null +++ b/src/syntaxParser/VariableList.java @@ -0,0 +1,37 @@ +package syntaxParser; +/* Author: Sorin Stancu-Mara + * Date: 8 Feb 2008 + */ + +class VariableList implements IParseTreeNode { + String axisType, iteratorName; + String lo,hi; + VariableList next; + + public VariableList(String type, String name, String lo, String hi) { + axisType = type; + iteratorName = name; + this.lo = lo; + this.hi = hi; + next = null; + } + + public VariableList(String type, String name, String lo, String hi, VariableList next) { + axisType = type; + iteratorName = name; + this.lo = lo; + this.hi = hi; + this.next = next; + } + + public String toXML() { + String result = "" + axisType + "" + + "" + iteratorName + "" + + "" + lo + "" + + "" + hi + ""; + + if (next != null) result += next.toXML(); + return result; + } + +} -- cgit