public class NumberDirective extends Directive
示例: #number(3.1415926, "#.##") #number(0.9518, "#.##%") #number(300000, "光速为每秒 ,### 公里。") #set(n = 1.234) #set(p = "#.##") #number(n, p)
Constructor and Description |
---|
NumberDirective() |
Modifier and Type | Method and Description |
---|---|
void |
exec(Env env,
Scope scope,
Writer writer) |
void |
setExprList(ExprList exprList)
指令被解析时注入指令参数表达式列表,继承类可以通过覆盖此方法对参数长度和参数类型进行校验
|
getLocation, hasEnd, setLocation, write
Copyright © 2018. All rights reserved.