public interface TreeNode
Module: equations-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>equations-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
void |
genCode(Stack<CodeAndSourceLocation> codeStack)
Generated code for this node and pushes it onto the execution stack.
|
TreeNode |
getLeftChild()
Returns the left child if it exists or null if it doesn't.
|
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.
|
Class |
getType()
Returns the type of this node.
|
int getSourceLocation()
Class getType()
TreeNode getLeftChild()
TreeNode getRightChild()
void genCode(Stack<CodeAndSourceLocation> codeStack)
codeStack
- the execution stack to push the generated code for this node.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.