org.apache.hivemind.conditional
Interface Evaluator

All Known Implementing Classes:
AndEvaluator, ClassNameEvaluator, NotEvaluator, OrEvaluator, PropertyEvaluator

public interface Evaluator

An evaluator is paired with a Node. The Node provides structure, the Evaluator provides meaning, interpreting the node.

Since:
1.1
Author:
Howard M. Lewis Ship

Method Summary
 boolean evaluate(EvaluationContext context, Node node)
          Invoked by the Node to evaluate its own value.
 

Method Detail

evaluate

boolean evaluate(EvaluationContext context,
                 Node node)
Invoked by the Node to evaluate its own value. Typical implementations will extract the Node's left and right properties and combine or otherwise evaluate them. Terminal nodes in the tree will have evaluators that don't do that but generate a return value internally.