Map 定义初始化表达式,添加支持 key 可以为 int、long、float、double、true、false、null 常量

This commit is contained in:
James
2017-12-10 19:40:40 +08:00
parent bd1949fc56
commit e0abc218b1
6 changed files with 117 additions and 68 deletions

View File

@@ -43,7 +43,7 @@ import com.jfinal.template.stat.ParseException;
*/
public class NumTok extends Tok {
private Object value;
private Number value;
NumTok(Sym sym, String s, int radix, boolean isScientificNotation, Location location) {
super(sym, location.getRow());
@@ -101,3 +101,8 @@ public class NumTok extends Tok {
return sym.value() + " : " + value;
}
}