public class JexlEngine extends Object implements ExpressionEngine
Constructor and Description |
---|
JexlEngine() |
Modifier and Type | Method and Description |
---|---|
Object |
eval(String expression,
Map<String,Object> context,
Collection<Class<?>> allowClassSet)
执行表达式
|
org.apache.commons.jexl3.JexlEngine |
getEngine()
获取
JexlEngine |
public Object eval(String expression, Map<String,Object> context, Collection<Class<?>> allowClassSet)
ExpressionEngine
eval
in interface ExpressionEngine
expression
- 表达式context
- 表达式上下文,用于存储表达式中所需的变量值等allowClassSet
- 允许的Class白名单public org.apache.commons.jexl3.JexlEngine getEngine()
JexlEngine
JexlEngine
Copyright © 2024. All rights reserved.