summaryrefslogtreecommitdiffstats
path: root/src/syntaxParser/CoverageConstructorExpr.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntaxParser/CoverageConstructorExpr.java')
-rw-r--r--src/syntaxParser/CoverageConstructorExpr.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/syntaxParser/CoverageConstructorExpr.java b/src/syntaxParser/CoverageConstructorExpr.java
new file mode 100644
index 0000000..2f6d89e
--- /dev/null
+++ b/src/syntaxParser/CoverageConstructorExpr.java
@@ -0,0 +1,21 @@
+package syntaxParser;
+/* Author: Sorin Stancu-Mara
+ * Date: 8 Feb 2008
+ */
+
+class CoverageConstructorExpr implements IParseTreeNode {
+ String name;
+ VariableList variables;
+ ScalarExpr expr;
+
+ public CoverageConstructorExpr(String name, VariableList vl, ScalarExpr expr) {
+ this.name = name;
+ this.variables = vl;
+ this.expr = expr;
+ }
+
+ public String toXML() {
+ return "<construct><coverage>" + name + "</coverage>" + variables.toXML() + expr.toXML() + "</construct>";
+ }
+
+}