|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hawk.ds.BinaryTree
public class BinaryTree
This creates a binary tree from the input string
Element
,
Expression
,
Variable
,
DoubleDataType
,
VarTypeEnum
Nested Class Summary | |
---|---|
static class |
BinaryTree.Node
This represents the node of the binary tree. |
Constructor Summary | |
---|---|
BinaryTree(java.lang.String str)
Initializes a newly created BinaryTree object. |
Method Summary | |
---|---|
IScript |
calculate()
|
IScript |
calculate(BinaryTree.Node toor)
|
boolean |
createTree()
Creates the binary tree from the infix expression. |
Expression |
getInfixExpression()
|
java.lang.String |
getInputExpression()
|
IScript |
getOutput()
This returns the output of the binary tree. |
static void |
main(java.lang.String[] args)
|
void |
setInfixExpression(Expression infixExpression)
|
void |
setInputExpression(java.lang.String inputExpression)
|
void |
showTree()
|
void |
showTree(int length)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinaryTree(java.lang.String str) throws HawkException
BinaryTree
object.
HawkException
Method Detail |
---|
public Expression getInfixExpression()
public void setInfixExpression(Expression infixExpression)
public java.lang.String getInputExpression()
public void setInputExpression(java.lang.String inputExpression)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public boolean createTree() throws HawkException
HawkException
public IScript getOutput()
public void showTree()
public void showTree(int length)
public IScript calculate() throws HawkException
HawkException
public IScript calculate(BinaryTree.Node toor) throws HawkException
HawkException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |