summaryrefslogtreecommitdiffstats
path: root/src/grammar/FieldInterpolationElement.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/grammar/FieldInterpolationElement.java')
-rw-r--r--src/grammar/FieldInterpolationElement.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/grammar/FieldInterpolationElement.java b/src/grammar/FieldInterpolationElement.java
new file mode 100644
index 0000000..26c65c5
--- /dev/null
+++ b/src/grammar/FieldInterpolationElement.java
@@ -0,0 +1,26 @@
+package grammar;
+
+/** FieldInterpolationElement
+ *
+ * @author Andrei Aiordachioaie
+ */
+public class FieldInterpolationElement implements IParseTreeNode
+{
+
+ String name;
+ IParseTreeNode node;
+
+ public FieldInterpolationElement(String name, InterpolationMethod method)
+ {
+ this.name = name;
+ node = method;
+ }
+
+ public String toXML()
+ {
+ String result = "<name>" + name + "</name>" + node.toXML();
+
+ return result;
+ }
+
+}