All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.hutool.extra.expression.ExpressionEngine Maven / Gradle / Ivy

The newest version!
package cn.hutool.extra.expression;

import java.util.Collection;
import java.util.Map;

/**
 * 表达式引擎API接口,通过实现此接口,完成表达式的解析和执行
 *
 * @author looll, independenter
 * @since 5.5.0
 */
public interface ExpressionEngine {

	/**
	 * 执行表达式
	 *
	 * @param expression    表达式
	 * @param context       表达式上下文,用于存储表达式中所需的变量值等
	 * @param allowClassSet 允许的Class白名单
	 * @return 执行结果
	 */
	Object eval(String expression, Map context, Collection> allowClassSet);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy