KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > yan > xml > LiteralStmt


1 /**
2  *
3  */

4 package jfun.yan.xml;
5
6 abstract class LiteralStmt implements Stmt{
7   final Class JavaDoc type;
8   private final String JavaDoc val;
9   private final Location loc;
10   LiteralStmt(Class JavaDoc type, String JavaDoc val, Location loc) {
11     this.loc = loc;
12     this.type = type;
13     this.val = val;
14   }
15   public Class JavaDoc getType() {
16     return type;
17   }
18   public Location getLocation() {
19     return loc;
20   }
21   public String JavaDoc toString(){
22     return val;
23   }
24 }
Popular Tags