summaryrefslogtreecommitdiffstats
path: root/src/grammar/CoverageList.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/grammar/CoverageList.java')
-rw-r--r--src/grammar/CoverageList.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/grammar/CoverageList.java b/src/grammar/CoverageList.java
new file mode 100644
index 0000000..38f1bdb
--- /dev/null
+++ b/src/grammar/CoverageList.java
@@ -0,0 +1,37 @@
+package grammar;
+
+/**
+ * CoverageList class represents a CoverageList.
+ * Creation date: (3/3/2003 2:52:55 AM)
+ * @author: mattia parigiani, Sorin Stancu-Mara, Andrei Aiordachioaie
+ */
+
+public class CoverageList implements IParseTreeNode
+{
+ private String coverageName;
+ private CoverageList next;
+
+ public CoverageList(String c)
+ {
+ coverageName = c;
+ next = null;
+ }
+
+ public CoverageList(String c, CoverageList l)
+ {
+ coverageName = c;
+ next = l;
+ }
+
+ public String toXML()
+ {
+ String result = "<coverageName>" + coverageName + "</coverageName>";
+
+ if (next != null)
+ {
+ result += next.toXML();
+ }
+
+ return result;
+ }
+} \ No newline at end of file