tools.blend
Class LogicTree

java.lang.Object
  extended by tools.blend.LogicTree

public final class LogicTree
extends java.lang.Object

These functions turn a tree of ParseTokens (a scanned and parsed expression) into a list of CompareNodes that are wired together through their pass/fail jump labels. The CompareNodes live in a complex tree of logic operators that serve only to wire them together. Once the tree is built and the CompareNodes wired, there is no need for the tree. The list of CompareNodes is ready to be turned into code.


Method Summary
static java.util.List<CompareNode> makeLogicTree(ParseToken expression, java.lang.String tag)
          This method returns a list of CompareNodes wired together to implement the given expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeLogicTree

public static java.util.List<CompareNode> makeLogicTree(ParseToken expression,
                                                        java.lang.String tag)
                                                 throws ExpressionException
This method returns a list of CompareNodes wired together to implement the given expression.

Parameters:
expression - the scanned and parsed tree of ParseTokens
tag -
Returns:
the wired up CompareNodes
Throws:
ExpressionException - if there are errors in the expression