summaryrefslogtreecommitdiffstats
path: root/src/grammar/RangeConstructorTerm.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/grammar/RangeConstructorTerm.java')
-rw-r--r--src/grammar/RangeConstructorTerm.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/grammar/RangeConstructorTerm.java b/src/grammar/RangeConstructorTerm.java
new file mode 100644
index 0000000..84a9491
--- /dev/null
+++ b/src/grammar/RangeConstructorTerm.java
@@ -0,0 +1,29 @@
+package grammar;
+
+/** RangeConstructorTerm, part of a RangeConstructorExpr
+ *
+ * @author Andrei Aiordachioaie
+ */
+public class RangeConstructorTerm implements IParseTreeNode
+{
+
+ String field;
+ CoverageExpr expr;
+
+ public RangeConstructorTerm(String f, CoverageExpr c)
+ {
+ field = f;
+ expr = c;
+ }
+
+ public String toXML()
+ {
+ String result = "";
+ result += "<field>" + field + "</field>";
+ result += expr.toXML();
+
+ result = "<component>" + result + "</component>";
+ return result;
+ }
+
+}