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; } }