com.greenpineyu.fel.context
类 ContextChain
java.lang.Object
com.greenpineyu.fel.context.ContextChain
- 所有已实现的接口:
- FelContext
public class ContextChain
- extends Object
- implements FelContext
上下文链,可以处理多级上下文。 在获取变量时,先从本级取,取不到再从上级取。 设置变量时,只设置到本级中
- 作者:
- yuqingsong
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextChain
public ContextChain(FelContext parent,
FelContext current)
get
public Object get(String name)
- 从接口
FelContext 复制的描述
- 获取变量值
- 指定者:
- 接口
FelContext 中的 get
- 参数:
name - 变量名称
- 返回:
- 变量值,如果没有找到变量,返回FelContext.NOT_FOUND
set
public void set(String name,
Object value)
- 从接口
FelContext 复制的描述
- 设置变量
- 指定者:
- 接口
FelContext 中的 set
- 参数:
name - 变量名称value - 变量值
getVar
public Var getVar(String name)
- 指定者:
- 接口
FelContext 中的 getVar
setVar
public void setVar(Var var)
- 指定者:
- 接口
FelContext 中的 setVar
Copyright © 2013. All Rights Reserved.