public interface ExpressionEvaluator
| Modifier and Type | Interface and Description |
|---|---|
static class |
ExpressionEvaluator.Factory
Factory method for creating ExpressionEvaluator instances.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
eval(Object contextObject)
Evaluate a conditional expression against the supplied object (can be a Map).
|
String |
getExpression()
Get the String representation of the active expression on the evaluator instance.
|
Object |
getValue(Object contextObject)
Evaluate an expression against the supplied Map variable, returning the eval result.
|
ExpressionEvaluator |
setExpression(String expression)
Set the condition expression for the evaluator implementation.
|
ExpressionEvaluator setExpression(String expression) throws SmooksConfigurationException
expression - The expression to be evaluated by the evaluator implementation.SmooksConfigurationException - Invalid expression configuration.String getExpression()
boolean eval(Object contextObject) throws ExpressionEvaluationException
contextObject - The object against which the expression is to be evaluated.ExpressionEvaluationException - Invalid expression evaluation condition (implementation specific).Object getValue(Object contextObject) throws ExpressionEvaluationException
contextObject - ExpressionEvaluationException - Invalid expression evaluation (implementation specific).Copyright © 2020. All rights reserved.