public class ExpressionEvaluatorFacade extends Object
ExpressionEvaluator| Modifier and Type | Method and Description |
|---|---|
static Object |
evaluate(String expression,
Map<String,Object> sourceMap)
Evaluates the given
expression based on the variables in the
contextMap. |
static Object |
evaluate(String expression,
Map<String,Object> sourceMap,
boolean updateSourceMap)
Evaluates the given
expression based on the variables in the
contextMap. |
public static Object evaluate(String expression, Map<String,Object> sourceMap) throws org.nfunk.jep.ParseException
expression based on the variables in the
contextMap.expression - the expression to be parsedsourceMap - the map of variables to be used for evaluationorg.nfunk.jep.ParseException - if for some reason the expression could not be evaluatedpublic static Object evaluate(String expression, Map<String,Object> sourceMap, boolean updateSourceMap) throws org.nfunk.jep.ParseException
expression based on the variables in the
contextMap.expression - the expression to be parsedsourceMap - the map of variables to be used for evaluationupdateSourceMap - a flag indicating whether or not the initial variables map shall
be updated with the evaluation results (default: false)org.nfunk.jep.ParseException - if for some reason the expression could not be evaluatedCopyright © 2020. All rights reserved.