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) |
ExpressionEvaluatorResult |
evaluateUnaryExpression(String rawExpression,
Object resultValue,
Class<?> resultClass) |
String |
fromObjectToExpression(Object value) |
public MVELExpressionEvaluator(ClassLoader classLoader)
public ExpressionEvaluatorResult evaluateUnaryExpression(String rawExpression, Object resultValue, Class<?> resultClass)
evaluateUnaryExpression in interface ExpressionEvaluatorpublic Object evaluateLiteralExpression(String rawExpression, String className, List<String> genericClasses)
evaluateLiteralExpression in interface ExpressionEvaluatorpublic String fromObjectToExpression(Object value)
fromObjectToExpression in interface ExpressionEvaluatorprotected Object compileAndExecute(String rawExpression, Map<String,Object> params)
protected String cleanExpression(String rawExpression)
IllegalArgumentException is thrown.rawExpression - Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.