summaryrefslogtreecommitdiffstats
path: root/src/grammar/FieldInterpolationElement.java
blob: 26c65c59d31b6133d0dee006fb69112ef1780ee1 (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
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;
    }
    
}