summaryrefslogtreecommitdiffstats
path: root/src/grammar/CoverageConstantExpr.java
blob: 95ea7ab053bb13823f08f7a4bafc0c18c2fe71fd (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
package grammar;

/** CoverageConstantExpr
 *
 * @author Andrei Aiordachioaie
 */
public class CoverageConstantExpr implements IParseTreeNode {
    
    String name;
    AxisIteratorList alist;
    ConstantList clist;
    
    public CoverageConstantExpr(String name, AxisIteratorList alist, ConstantList clist)
    {
        this.name = name;
        this.alist = alist;
        this.clist = clist;
    }
    
    public String toXML()
    {
        String result = "";

        result += "<name>" + name + "</name>";
        result += alist.toXML();
        result += clist.toXML();

        result = "<const>" + result + "</const>";
        return result;
    }
}