类 VarRefOptimal
java.lang.Object
org.beetl.core.statement.ASTNode
org.beetl.core.statement.Expression
org.beetl.core.statement.VarRef
org.beetl.core.statement.optimal.VarRefOptimal
- 所有已实现的接口:
Serializable,IVarIndex
已过时。
取消,报错体验跟VarRef不一致,当变量不存在的时候,应该是NOT_DEFINED,而不是NULL
针对最常见的,单个属性,无安全输出表岛是做代码优化,比如 user.name
- 作者:
- xiandafu
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 org.beetl.core.statement.VarRef
VarRef.Result -
字段概要
字段从类继承的字段 org.beetl.core.statement.VarRef
attributes, firstToken, hasSafe, safe -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明已过时。int已过时。获取变量在context中的索引值voidsetVarIndex(int index) 已过时。设置变量在context中的索引为index从类继承的方法 org.beetl.core.statement.VarRef
evaluateUntilLast, getValue
-
字段详细资料
-
attribute
已过时。 -
varIndex
public int varIndex已过时。
-
-
构造器详细资料
-
VarRefOptimal
已过时。
-
-
方法详细资料
-
evaluate
已过时。 -
setVarIndex
public void setVarIndex(int index) 已过时。从接口复制的说明:IVarIndex设置变量在context中的索引为index- 指定者:
setVarIndex在接口中IVarIndex- 覆盖:
setVarIndex在类中VarRef- 参数:
index- 索引值,应该是一个大于等于0的整数
-
getVarIndex
public int getVarIndex()已过时。从接口复制的说明:IVarIndex获取变量在context中的索引值- 指定者:
getVarIndex在接口中IVarIndex- 覆盖:
getVarIndex在类中VarRef- 返回:
- 变量在context中的索引值
-