
com.whaleal.icefrog.extra.expression.engine.mvel.MvelEngine Maven / Gradle / Ivy
package com.whaleal.icefrog.extra.expression.engine.mvel;
import com.whaleal.icefrog.extra.expression.ExpressionEngine;
import org.mvel2.MVEL;
import java.util.Map;
/**
* MVEL (MVFLEX Expression Language)引擎封装
* 见:https://github.com/mvel/mvel
*
* @author looly
*/
public class MvelEngine implements ExpressionEngine {
/**
* 构造
*/
public MvelEngine() {
}
@Override
public Object eval( String expression, Map context ) {
return MVEL.eval(expression, context);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy