summaryrefslogtreecommitdiffstats
path: root/src/syntaxParser/VariableList.java
diff options
context:
space:
mode:
authorConstantin Jucovschi <cj@ubuntu.localdomain>2009-03-31 06:18:54 -0400
committerConstantin Jucovschi <cj@ubuntu.localdomain>2009-03-31 06:18:54 -0400
commit0f1055b8d7f97d86c66fa602c17666bc2ff9c437 (patch)
tree9c68fa99a97063bbe4a4231e04fc09329541ac71 /src/syntaxParser/VariableList.java
Initial commit
Diffstat (limited to 'src/syntaxParser/VariableList.java')
-rw-r--r--src/syntaxParser/VariableList.java37
1 files changed, 37 insertions, 0 deletions
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 = "<axisIterator><axisType>" + axisType + "</axisType>" +
+ "<iteratorVar>" + iteratorName + "</iteratorVar>" +
+ "<coord>" + lo + "</coord>" +
+ "<coord>" + hi + "</coord></axisIterator>";
+
+ if (next != null) result += next.toXML();
+ return result;
+ }
+
+}