com.greenpineyu.fel.context
类 ArrayCtxImpl

java.lang.Object
  继承者 com.greenpineyu.fel.context.ArrayCtxImpl
所有已实现的接口:
ArrayCtx, FelContext

public class ArrayCtxImpl
extends Object
implements ArrayCtx


字段摘要
 
从接口 com.greenpineyu.fel.context.FelContext 继承的字段
NULL
 
构造方法摘要
ArrayCtxImpl()
           
ArrayCtxImpl(Map<String,Object> vars)
           
 
方法摘要
 void ensureCapacity(int minCapacity)
          确保vars.length>minCapacity
 Object get(int i)
          根据索引获取变量值
 Object get(String name)
          获取变量值
 int getIndex(String name)
          获取变量的索引
 Var getVar(String name)
           
 void set(String name, Object value)
          设置变量
 void setVar(Var var)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ArrayCtxImpl

public ArrayCtxImpl()

ArrayCtxImpl

public ArrayCtxImpl(Map<String,Object> vars)
方法详细信息

get

public Object get(int i)
从接口 ArrayCtx 复制的描述
根据索引获取变量值

指定者:
接口 ArrayCtx 中的 get
返回:

getIndex

public int getIndex(String name)
从接口 ArrayCtx 复制的描述
获取变量的索引

指定者:
接口 ArrayCtx 中的 getIndex
返回:

get

public Object get(String name)
从接口 FelContext 复制的描述
获取变量值

指定者:
接口 FelContext 中的 get
参数:
name - 变量名称
返回:
变量值,如果没有找到变量,返回FelContext.NOT_FOUND

getVar

public Var getVar(String name)
指定者:
接口 FelContext 中的 getVar

ensureCapacity

public void ensureCapacity(int minCapacity)
确保vars.length>minCapacity

参数:
minCapacity -

set

public void set(String name,
                Object value)
从接口 FelContext 复制的描述
设置变量

指定者:
接口 FelContext 中的 set
参数:
name - 变量名称
value - 变量值

setVar

public void setVar(Var var)
指定者:
接口 FelContext 中的 setVar


Copyright © 2013. All Rights Reserved.