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