Package org.smooks.api.expression
Interface ExecutionContextExpressionEvaluator
-
- All Superinterfaces:
ExpressionEvaluator
public interface ExecutionContextExpressionEvaluator extends ExpressionEvaluator
ExecutionContext
based expression evaluator.- Author:
- tom.fennelly@gmail.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
eval(ExecutionContext context)
Evaluate an expression based on the suppliedExecutionContext
.Object
getValue(ExecutionContext context)
Evaluate an expression based on the suppliedExecutionContext
and return the value.-
Methods inherited from interface org.smooks.api.expression.ExpressionEvaluator
eval, getExpression, getValue, setExpression
-
-
-
-
Method Detail
-
eval
boolean eval(ExecutionContext context) throws ExpressionEvaluationException
Evaluate an expression based on the suppliedExecutionContext
.- Parameters:
context
- The context.- Returns:
- True if the condition evaluates successfully, otherwise false.
- Throws:
ExpressionEvaluationException
- Invalid expression evaluation (implementation specific).
-
getValue
Object getValue(ExecutionContext context) throws ExpressionEvaluationException
Evaluate an expression based on the suppliedExecutionContext
and return the value.- Parameters:
context
- The context.- Returns:
- Expression evaluation result.
- Throws:
ExpressionEvaluationException
- Invalid expression evaluation (implementation specific).
-
-