public abstract class AbstractNode extends Object implements 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>
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()
TreeNode
getSourceLocation
in interface TreeNode
public abstract String toString()
String
representation of this node.public abstract Class getType()
TreeNode
public abstract TreeNode getLeftChild()
TreeNode
getLeftChild
in interface TreeNode
public abstract TreeNode getRightChild()
TreeNode
getRightChild
in interface TreeNode
public abstract void genCode(Stack<CodeAndSourceLocation> codeStack)
TreeNode
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.