public abstract class AbstractNode extends Object implements TreeNode
| Constructor and Description |
|---|
AbstractNode(int sourceLocation)
Base class constructor for any
Node type. |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
genCode(Stack<CodeAndSourceLocation> codeStack)
Generated code for this node and pushes it onto the execution stack.
|
abstract TreeNode |
getLeftChild()
Returns the left child if it exists or null if it doesn't.
|
abstract TreeNode |
getRightChild()
Returns the right child if it exists or null if it doesn't.
|
int |
getSourceLocation()
Returns the start of the location in the equation where the code was found that was
turned into a node in the parse tree.
|
abstract Class |
getType()
Returns the type of this node.
|
abstract String |
toString()
Returns s
String representation of this node. |
public AbstractNode(int sourceLocation)
Node type.sourceLocation - start of the location in the equation where the code was found
that was turned into a node in the parse treepublic final int getSourceLocation()
TreeNodegetSourceLocation in interface TreeNodepublic abstract String toString()
String representation of this node.public abstract Class getType()
TreeNodepublic abstract TreeNode getLeftChild()
TreeNodegetLeftChild in interface TreeNodepublic abstract TreeNode getRightChild()
TreeNodegetRightChild in interface TreeNodepublic abstract void genCode(Stack<CodeAndSourceLocation> codeStack)
TreeNodeCopyright 2011 Cytoscape Consortium. All rights reserved.