diff options
Diffstat (limited to 'src/grammar/InterpolationMethodList.java')
| -rw-r--r-- | src/grammar/InterpolationMethodList.java | 36 |
1 files changed, 36 insertions, 0 deletions
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<InterpolationMethod> list; + + public InterpolationMethodList() + { + list = new LinkedList(); + } + + public void add(InterpolationMethod meth) + { + list.add(meth); + } + + public String toXML() + { + String result = ""; + Iterator<InterpolationMethod> it = list.iterator(); + while (it.hasNext()) + { + result += it.next().toXML(); + } + + return result; + } + +} |
