类 VarRef
java.lang.Object
org.beetl.core.statement.ASTNode
org.beetl.core.statement.Expression
org.beetl.core.statement.VarRef
- 所有已实现的接口:
Serializable,IVarIndex
- 直接已知子类:
VarRefOptimal
user.name
- 作者:
- xiandafu
- 另请参阅:
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明booleanint -
构造器概要
构造器构造器说明VarRef(VarAttribute[] attributes, boolean hasSafe, Expression safe, GrammarToken token) VarRef(VarAttribute[] attributes, boolean hasSafe, Expression safe, GrammarToken token, GrammarToken firstToken) -
方法概要
修饰符和类型方法说明evaluateUntilLast(Context ctx) 计算所有表达式,知道最后一值,用于a.b[xx].c = 1 赋值,只计算到a.b[xx]protected VarRef.Resultint获取变量在context中的索引值voidsetVarIndex(int index) 设置变量在context中的索引为index
-
字段详细资料
-
attributes
-
safe
-
varIndex
public int varIndex -
hasSafe
public boolean hasSafe -
firstToken
-
-
构造器详细资料
-
VarRef
-
VarRef
public VarRef(VarAttribute[] attributes, boolean hasSafe, Expression safe, GrammarToken token, GrammarToken firstToken)
-
-
方法详细资料
-
evaluate
- 覆盖:
evaluate在类中Expression
-
getValue
-
evaluateUntilLast
计算所有表达式,知道最后一值,用于a.b[xx].c = 1 赋值,只计算到a.b[xx] -
setVarIndex
public void setVarIndex(int index) 从接口复制的说明:IVarIndex设置变量在context中的索引为index- 指定者:
setVarIndex在接口中IVarIndex- 参数:
index- 索引值,应该是一个大于等于0的整数
-
getVarIndex
public int getVarIndex()从接口复制的说明:IVarIndex获取变量在context中的索引值- 指定者:
getVarIndex在接口中IVarIndex- 返回:
- 变量在context中的索引值
-