tools.blend
Class Node

java.lang.Object
  extended by tools.blend.Node
Direct Known Subclasses:
AndNode, AsIsNode, CapNode, CompareNode, NotNode, OrNode

public abstract class Node
extends java.lang.Object

This abstract class holds the basic functionality of all blend expression nodes.


Constructor Summary
Node(Node parent, java.lang.String name)
          This creates a new blend node.
 
Method Summary
 void addChild(Node child)
          This method adds a child to the node's child list
protected  int getChildIndex(Node whichChildAmI)
           
 java.lang.String getName()
          This method returns this node's unique name.
 CompareNode getStartingCompareNode()
          This returns the first compare node.
abstract  java.lang.String whereDoIGoOnFail(Node whichChildAmI)
           
abstract  java.lang.String whereDoIGoOnPass(Node whichChildAmI)
          When a child node finishes its processing it can either have passed or failed and needs a destination to jump to (another compare-node or the pass/fail blocks).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node(Node parent,
            java.lang.String name)
This creates a new blend node.

Parameters:
parent - the parent of this node
name - the unique name of the node
Method Detail

getStartingCompareNode

public CompareNode getStartingCompareNode()
This returns the first compare node.

Returns:
the starting compare node

addChild

public void addChild(Node child)
This method adds a child to the node's child list

Parameters:
child - the child to add

getName

public java.lang.String getName()
This method returns this node's unique name.

Returns:
the node name

getChildIndex

protected int getChildIndex(Node whichChildAmI)

whereDoIGoOnPass

public abstract java.lang.String whereDoIGoOnPass(Node whichChildAmI)
When a child node finishes its processing it can either have passed or failed and needs a destination to jump to (another compare-node or the pass/fail blocks). This method returns the next place.

Parameters:
whichChildAmI - which child I am (AND and OR have multiple children)
Returns:
the name of the next jump destination

whereDoIGoOnFail

public abstract java.lang.String whereDoIGoOnFail(Node whichChildAmI)