|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface FelEngine
表达式引擎
| 字段摘要 | |
|---|---|
static FelEngine |
instance
默认实例 |
| 方法摘要 | |
|---|---|
void |
addFun(Function fun)
添加函数到用户函数库中(执行表达式时,优先从用户函数库中获取函数) |
Expression |
compile(String exp,
FelContext ctx,
Optimizer... opts)
编译表达式 |
Object |
eval(String exp)
执行表达式,获取结果 |
Object |
eval(String exp,
FelContext ctx)
使用指定的引擎上下文执行表达式,获取结果 |
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 mgr)
设置安全管理器 |
| 字段详细信息 |
|---|
static final FelEngine instance
| 方法详细信息 |
|---|
Object eval(String exp)
exp -
Object eval(String exp,
FelContext ctx)
exp - ctx - 引擎上下文
FelNode parse(String exp)
exp -
Expression compile(String exp,
FelContext ctx,
Optimizer... opts)
exp - ctx - opts - 编译优化选项
FelContext getContext()
void addFun(Function fun)
fun - CompileService getCompiler()
void setCompiler(CompileService compiler)
compiler - Parser getParser()
void setParser(Parser parser)
parser - FunMgr getFunMgr()
void setFunMgr(FunMgr funMgr)
funMgr - void setContext(FelContext context)
context - SecurityMgr getSecurityMgr()
void setSecurityMgr(SecurityMgr mgr)
mgr -
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||