summaryrefslogtreecommitdiffstats
path: root/src/grammar/CoverageList.java
blob: 38f1bdbc02a6f49a945fa0b465d7da0cb8f4856a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;
    }
}