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

cn.hutool.extra.expression.engine.mvel.MvelEngine Maven / Gradle / Ivy

There is a newer version: 5.8.33
Show newest version
package cn.hutool.extra.expression.engine.mvel;

import cn.hutool.extra.expression.ExpressionEngine;
import org.mvel2.MVEL;

import java.util.Map;

/**
 * MVEL (MVFLEX Expression Language)引擎封装
* 见:https://github.com/mvel/mvel * * @since 5.5.0 * @author looly */ public class MvelEngine implements ExpressionEngine { /** * 构造 */ public MvelEngine(){ } @Override public Object eval(String expression, Map context) { return MVEL.eval(expression, context); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy