com.greenpineyu.fel
类 FelEngineImpl

java.lang.Object
  继承者 com.greenpineyu.fel.FelEngineImpl
所有已实现的接口:
FelEngine

public class FelEngineImpl
extends Object
implements FelEngine

执行引擎

作者:
yqs

字段摘要
 
从接口 com.greenpineyu.fel.FelEngine 继承的字段
instance
 
构造方法摘要
FelEngineImpl()
           
FelEngineImpl(FelContext context)
           
 
方法摘要
 void addFun(Function fun)
          添加函数到用户函数库中(执行表达式时,优先从用户函数库中获取函数)
 Expression compile(String exp, FelContext ctx, Optimizer... opts)
          编译表达式
 Expression compile(String exp, Var... vars)
           
 Object eval(String exp)
          执行表达式,获取结果
 Object eval(String exp, FelContext ctx)
          使用指定的引擎上下文执行表达式,获取结果
 Object eval(String exp, Var... vars)
           
 CompileService getCompiler()
          获取编译器
 FelContext getContext()
           
 FunMgr getFunMgr()
          获取函数管理器
 Parser getParser()
          获取解析器
 SecurityMgr getSecurityMgr()
          返回安全管理器
 FelNode parse(String exp)
          解析表达式为节点
 void setCompiler(CompileService compiler)
          设置编译器
 void setContext(FelContext context)
          设置Context
 void setFunMgr(FunMgr funMgr)
          设置函数管理器
 void setParser(Parser parser)
          设置解析器
 void setSecurityMgr(SecurityMgr securityMgr)
          设置安全管理器
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

FelEngineImpl

public FelEngineImpl(FelContext context)

FelEngineImpl

public FelEngineImpl()
方法详细信息

getSecurityMgr

public SecurityMgr getSecurityMgr()
从接口 FelEngine 复制的描述
返回安全管理器

指定者:
接口 FelEngine 中的 getSecurityMgr
返回:

setSecurityMgr

public void setSecurityMgr(SecurityMgr securityMgr)
从接口 FelEngine 复制的描述
设置安全管理器

指定者:
接口 FelEngine 中的 setSecurityMgr

parse

public FelNode parse(String exp)
从接口 FelEngine 复制的描述
解析表达式为节点

指定者:
接口 FelEngine 中的 parse
返回:

eval

public Object eval(String exp)
从接口 FelEngine 复制的描述
执行表达式,获取结果

指定者:
接口 FelEngine 中的 eval
返回:

eval

public Object eval(String exp,
                   Var... vars)

eval

public Object eval(String exp,
                   FelContext ctx)
从接口 FelEngine 复制的描述
使用指定的引擎上下文执行表达式,获取结果

指定者:
接口 FelEngine 中的 eval
ctx - 引擎上下文
返回:

compile

public Expression compile(String exp,
                          Var... vars)

compile

public Expression compile(String exp,
                          FelContext ctx,
                          Optimizer... opts)
从接口 FelEngine 复制的描述
编译表达式

指定者:
接口 FelEngine 中的 compile
opts - 编译优化选项
返回:

toString

public String toString()
覆盖:
Object 中的 toString

addFun

public void addFun(Function fun)
从接口 FelEngine 复制的描述
添加函数到用户函数库中(执行表达式时,优先从用户函数库中获取函数)

指定者:
接口 FelEngine 中的 addFun

getContext

public FelContext getContext()
指定者:
接口 FelEngine 中的 getContext
返回:
引擎执行环境

getCompiler

public CompileService getCompiler()
从接口 FelEngine 复制的描述
获取编译器

指定者:
接口 FelEngine 中的 getCompiler
返回:

setCompiler

public void setCompiler(CompileService compiler)
从接口 FelEngine 复制的描述
设置编译器

指定者:
接口 FelEngine 中的 setCompiler

getParser

public Parser getParser()
从接口 FelEngine 复制的描述
获取解析器

指定者:
接口 FelEngine 中的 getParser
返回:

setParser

public void setParser(Parser parser)
从接口 FelEngine 复制的描述
设置解析器

指定者:
接口 FelEngine 中的 setParser

getFunMgr

public FunMgr getFunMgr()
从接口 FelEngine 复制的描述
获取函数管理器

指定者:
接口 FelEngine 中的 getFunMgr
返回:

setFunMgr

public void setFunMgr(FunMgr funMgr)
从接口 FelEngine 复制的描述
设置函数管理器

指定者:
接口 FelEngine 中的 setFunMgr

setContext

public void setContext(FelContext context)
从接口 FelEngine 复制的描述
设置Context

指定者:
接口 FelEngine 中的 setContext


Copyright © 2013. All Rights Reserved.