summaryrefslogtreecommitdiffstats
path: root/src/grammar/AxisIteratorList.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/grammar/AxisIteratorList.java')
-rw-r--r--src/grammar/AxisIteratorList.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/grammar/AxisIteratorList.java b/src/grammar/AxisIteratorList.java
new file mode 100644
index 0000000..afe8722
--- /dev/null
+++ b/src/grammar/AxisIteratorList.java
@@ -0,0 +1,44 @@
+package grammar;
+
+/** AxisIteratorList
+ *
+ * @author Andrei Aiordachioaie
+ */
+public class AxisIteratorList implements IParseTreeNode
+{
+ private String tag;
+ private AxisIterator it;
+ private AxisIteratorList next;
+
+ public AxisIteratorList(AxisIterator it)
+ {
+ this.it = it;
+ next=null;
+ tag = "";
+ }
+
+ public AxisIteratorList(AxisIterator it, AxisIteratorList n)
+ {
+ this.it = it;
+ next = n;
+ tag = "";
+ }
+
+ public void setTag(String tag)
+ {
+ this.tag = tag;
+ }
+
+ public String toXML()
+ {
+ String tag1 = "<" + tag + ">";
+ String tag2 = "</" + tag + ">";
+
+ if (tag.equals(""))
+ tag1 = tag2 = "";
+
+ String result = tag1 + it.toXML() + tag2
+ + next.toXML();
+ return result;
+ }
+}