public class ExpressionEvaluatorFactory extends Object
Modifier and Type | Method and Description |
---|---|
static ExpressionEvaluatorFactory |
create(ClassLoader classLoader,
ScenarioSimulationModel.Type type) |
ExpressionEvaluator |
getOrCreate(FactMappingValue factMappingValue)
Based on factMappingValue information it returns an instance of the specific expression evaluator required.
|
protected boolean |
isAnMVELExpression(String rawValue)
A rawValue is an MVEL expression if:
- NOT COLLECTIONS CASE: It's a
String which starts with MVEL_ESCAPE_SYMBOL ('#')
- COLLECTION CASE: It's a JSON String node, which is used only when an expression is set
(in other cases it's a JSON Object (Map) or a JSON Array (List)) and it's value starts with MVEL_ESCAPE_SYMBOL ('#') |
public static ExpressionEvaluatorFactory create(ClassLoader classLoader, ScenarioSimulationModel.Type type)
public ExpressionEvaluator getOrCreate(FactMappingValue factMappingValue)
factMappingValue
- protected boolean isAnMVELExpression(String rawValue)
String
which starts with MVEL_ESCAPE_SYMBOL ('#')
- COLLECTION CASE: It's a JSON String node, which is used only when an expression is set
(in other cases it's a JSON Object (Map) or a JSON Array (List)) and it's value starts with MVEL_ESCAPE_SYMBOL ('#')rawValue
- Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.