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/grammar/CoverageList.java | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/grammar/CoverageList.java (limited to 'src/grammar/CoverageList.java') 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 + ""; + + if (next != null) + { + result += next.toXML(); + } + + return result; + } +} \ No newline at end of file -- cgit