|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExpressionEvaluator
Abstract expression evaluator interface.
| Nested Class Summary | |
|---|---|
static class |
ExpressionEvaluator.Factory
Factory method for creating ExpressionEvaluator instances. |
| Method Summary | |
|---|---|
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. |
void |
setExpression(String expression)
Set the condition expression for the evaluator implementation. |
| Method Detail |
|---|
void 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).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||