public class MVELExpressionEvaluator extends Object implements ExpressionEvaluator
Constructor and Description |
---|
MVELExpressionEvaluator(ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
protected String |
cleanExpression(String rawExpression)
The clean works in the following ways:
- NOT COLLECTIONS CASE: The given rawExpression without MVEL_ESCAPE_SYMBOL ('#');
- COLLECTION CASE: Retrieving the value from rawExpression, which is a JSON String node in this case, removing
the MVEL_ESCAPE_SYMBOL ('#');
In both cases, the given String must start with MVEL_ESCAPE_SYMBOL.
|
protected Object |
compileAndExecute(String rawExpression,
Map<String,Object> params) |
Object |
evaluateLiteralExpression(String rawExpression,
String className,
List<String> genericClasses) |
boolean |
evaluateUnaryExpression(String rawExpression,
Object resultValue,
Class<?> resultClass) |
String |
fromObjectToExpression(Object value) |
public MVELExpressionEvaluator(ClassLoader classLoader)
public boolean evaluateUnaryExpression(String rawExpression, Object resultValue, Class<?> resultClass)
evaluateUnaryExpression
in interface ExpressionEvaluator
public Object evaluateLiteralExpression(String rawExpression, String className, List<String> genericClasses)
evaluateLiteralExpression
in interface ExpressionEvaluator
public String fromObjectToExpression(Object value)
fromObjectToExpression
in interface ExpressionEvaluator
protected Object compileAndExecute(String rawExpression, Map<String,Object> params)
protected String cleanExpression(String rawExpression)
IllegalArgumentException
is thrown.rawExpression
- Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.