tools.blend
Class AsIsNode

java.lang.Object
  extended by tools.blend.Node
      extended by tools.blend.AsIsNode

public class AsIsNode
extends Node

Expression may contain needless parenthesis ... like "(((A==4)))". This node captures that relationship by bridging a single parent node to a single child node as-is.


Constructor Summary
AsIsNode(Node parent, CapNode cap)
          This creates a new AsIsNode
 
Method Summary
 java.lang.String whereDoIGoOnFail(Node whichChildAmI)
           
 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 tools.blend.Node
addChild, getChildIndex, getName, getStartingCompareNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsIsNode

public AsIsNode(Node parent,
                CapNode cap)
This creates a new AsIsNode

Parameters:
parent - the parent node
cap - the root of the expression
Method Detail

whereDoIGoOnPass

public java.lang.String whereDoIGoOnPass(Node whichChildAmI)
Description copied from class: Node
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.

Specified by:
whereDoIGoOnPass in class Node
Parameters:
whichChildAmI - which child I am (AND and OR have multiple children)
Returns:
the name of the next jump destination

whereDoIGoOnFail

public java.lang.String whereDoIGoOnFail(Node whichChildAmI)
Specified by:
whereDoIGoOnFail in class Node