|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttools.blend.Node
tools.blend.CompareNode
public class CompareNode
A compare-node is where the action takes place in an expression tree. All other nodes just wire up the compare-nodes.
| Constructor Summary | |
|---|---|
CompareNode(Node parent,
ParseToken expression,
CapNode cap)
This creates a new CompareNode |
|
| Method Summary | |
|---|---|
ParseToken |
getExpression()
This method returns the expression |
java.lang.String |
getTreeName()
This returns the name of the construct unique to the tree the node is in. |
java.lang.String |
toString()
|
java.lang.String |
whereDoIGoOnFail()
|
java.lang.String |
whereDoIGoOnFail(Node whichChildAmI)
|
java.lang.String |
whereDoIGoOnPass()
|
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, wait, wait, wait |
| Constructor Detail |
|---|
public CompareNode(Node parent,
ParseToken expression,
CapNode cap)
parent - the parent nodeexpression - the expression to generate code forcap - the root of the expression| Method Detail |
|---|
public java.lang.String getTreeName()
public ParseToken getExpression()
public java.lang.String whereDoIGoOnPass()
public java.lang.String whereDoIGoOnFail()
public java.lang.String whereDoIGoOnPass(Node whichChildAmI)
Node
whereDoIGoOnPass in class NodewhichChildAmI - which child I am (AND and OR have multiple children)
public java.lang.String whereDoIGoOnFail(Node whichChildAmI)
whereDoIGoOnFail in class Nodepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||