blob: a80e9feb6f7f70d2a43802cc5bf3a77a319198aa (
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;
/** CoverageConstructorExpr
*
* @author Andrei Aiordachioaie
*/
public class CoverageConstructorExpr implements IParseTreeNode {
String name;
AxisIteratorList alist;
ScalarExpr expr;
public CoverageConstructorExpr(String name, AxisIteratorList alist, ScalarExpr expr)
{
this.name = name;
this.alist = alist;
this.expr = expr;
}
public String toXML()
{
String result = "";
result += "<name>" + name + "</name>";
result += alist.toXML();
result += expr.toXML();
result = "<construct>" + result + "</construct>";
return result;
}
}
|