blob: 4edd4e6fc4b970d3ba661e31a8f74030f4181376 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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;
}
}
|