org.apache.hivemind.conditional
Class NodeImpl

java.lang.Object
  extended by org.apache.hivemind.conditional.NodeImpl
All Implemented Interfaces:
Node

public class NodeImpl
extends java.lang.Object
implements Node

Implementation of Node.

Since:
1.1
Author:
Howard M. Lewis Ship

Constructor Summary
NodeImpl(Evaluator evaluator)
          Alternate constructor used for terminal nodes.
NodeImpl(Node left, Node right, Evaluator evaluator)
           
 
Method Summary
 boolean evaluate(EvaluationContext context)
          Evaluates the nodes using the context to provide access to runtime information.
 Node getLeft()
           
 Node getRight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeImpl

public NodeImpl(Node left,
                Node right,
                Evaluator evaluator)

NodeImpl

public NodeImpl(Evaluator evaluator)
Alternate constructor used for terminal nodes.

Method Detail

getLeft

public Node getLeft()
Specified by:
getLeft in interface Node

getRight

public Node getRight()
Specified by:
getRight in interface Node

evaluate

public boolean evaluate(EvaluationContext context)
Description copied from interface: Node
Evaluates the nodes using the context to provide access to runtime information.

Specified by:
evaluate in interface Node