org.milyn.expression
Interface ExecutionContextExpressionEvaluator

All Superinterfaces:
ExpressionEvaluator

public interface ExecutionContextExpressionEvaluator
extends ExpressionEvaluator

ExecutionContext based expression evaluator.

Author:
tom.fennelly@gmail.com

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.milyn.expression.ExpressionEvaluator
ExpressionEvaluator.Factory
 
Method Summary
 boolean eval(ExecutionContext context)
          Evaluate an expression based on the supplied ExecutionContext.
 Object getValue(ExecutionContext context)
          Evaluate an expression based on the supplied ExecutionContext and return the value.
 
Methods inherited from interface org.milyn.expression.ExpressionEvaluator
eval, getExpression, getValue, setExpression
 

Method Detail

eval

boolean eval(ExecutionContext context)
             throws ExpressionEvaluationException
Evaluate an expression based on the supplied ExecutionContext.

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 supplied ExecutionContext and return the value.

Parameters:
context - The context.
Returns:
Expression evaluation result.
Throws:
ExpressionEvaluationException - Invalid expression evaluation (implementation specific).


Copyright © 2008. All Rights Reserved.