com.greenpineyu.fel.context
类 MapContext
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Var>
com.greenpineyu.fel.context.MapContext
- 所有已实现的接口:
- FelContext, Serializable, Cloneable, Map<String,Var>
public class MapContext
- extends HashMap<String,Var>
- implements FelContext
- 作者:
- yuqingsong
- 另请参见:
- 序列化表格
| 从类 java.util.HashMap 继承的方法 |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
MapContext
public MapContext()
MapContext
public MapContext(Map<String,Object> map)
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 - 变量值
toString
public static String toString(Object var)
getVar
public Var getVar(String name)
- 指定者:
- 接口
FelContext 中的 getVar
setVar
public void setVar(Var var)
- 指定者:
- 接口
FelContext 中的 setVar
Copyright © 2013. All Rights Reserved.