From 0f1055b8d7f97d86c66fa602c17666bc2ff9c437 Mon Sep 17 00:00:00 2001 From: Constantin Jucovschi Date: Tue, 31 Mar 2009 06:18:54 -0400 Subject: Initial commit --- src/grammar/InterpolationMethodList.java | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/grammar/InterpolationMethodList.java (limited to 'src/grammar/InterpolationMethodList.java') diff --git a/src/grammar/InterpolationMethodList.java b/src/grammar/InterpolationMethodList.java new file mode 100644 index 0000000..4edd4e6 --- /dev/null +++ b/src/grammar/InterpolationMethodList.java @@ -0,0 +1,36 @@ +package grammar; + +import java.util.*; + +/** InterpolationMethodList + * + * @author Andrei Aiordachioaie + */ +public class InterpolationMethodList implements IParseTreeNode +{ + + LinkedList list; + + public InterpolationMethodList() + { + list = new LinkedList(); + } + + public void add(InterpolationMethod meth) + { + list.add(meth); + } + + public String toXML() + { + String result = ""; + Iterator it = list.iterator(); + while (it.hasNext()) + { + result += it.next().toXML(); + } + + return result; + } + +} -- cgit