|
Cytoscape 3.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cytoscape.equations.AbstractNode
public abstract class AbstractNode
A node in the parse tree.
| Constructor Summary | |
|---|---|
AbstractNode(int sourceLocation)
Base class constructor for any Node type. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 tree| Method Detail |
|---|
public final int getSourceLocation()
TreeNode
getSourceLocation in interface TreeNodepublic abstract String toString()
String representation of this node.
toString in class Objectpublic abstract Class getType()
TreeNode
getType in interface TreeNodepublic abstract TreeNode getLeftChild()
TreeNode
getLeftChild in interface TreeNodepublic abstract TreeNode getRightChild()
TreeNode
getRightChild in interface TreeNodepublic abstract void genCode(Stack<CodeAndSourceLocation> codeStack)
TreeNode
genCode in interface TreeNodecodeStack - the execution stack to push the generated code for this node.
|
Cytoscape 3.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||