summaryrefslogtreecommitdiffstats
path: root/src/grammar/ScaleExpr.java
blob: 9de84e200a8dde360ff3f55d82db286482cca769 (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
package grammar;
/**
 * ScaleExpr
 * Creation date: (3/3/2003 2:28:43 AM)
 * @author: mattia parigiani, Sorin Stancu-Mara, Andrei Aiordachioaie
 */
public class ScaleExpr implements IParseTreeNode {

	CoverageExpr coverageExpr;
	DimensionIntervalList intervalList;
	FieldInterpolationList interpMethods;
	
	public ScaleExpr( CoverageExpr ce, DimensionIntervalList ail, FieldInterpolationList iml){
		coverageExpr = ce;
		intervalList = ail;
		interpMethods =  iml;
	}

	public String toXML(){
		String result = "";

        result += coverageExpr.toXML() + intervalList.toXML() + interpMethods.toXML();
        result = "<scale>" + result + "</scale>";

        return result;
	}
}