summaryrefslogtreecommitdiffstats
path: root/src/syntaxParser/CastExpr.java
blob: dddaa0e3f9c3078345c58398d4a117ce9c4bd2e7 (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
package syntaxParser;
/**
 * CastExpr
 * Creation date: (3/3/2003 2:28:43 AM)
 * @author: mattia parigiani, Sorin Stancu-Mara
 */
class CastExpr implements IParseTreeNode {
	String castType;
	CoverageExpr coverageExpr;
	
	public CastExpr( CoverageExpr ce,  String ct){	
		castType = ct;
		coverageExpr = ce;		
	}
	
	public String toXML(){
		String result=  ""  ;	
		result += "<cast>";
		result += "<type>" + castType + "</type>";
		result += coverageExpr.toXML(); 
		result += "</cast>";
		return result;
	}
}