public class BinaryTree extends Object
Modifier and Type | Class and Description |
---|---|
class |
BinaryTree.Node
This class represents a binary tree node.
|
Constructor and Description |
---|
BinaryTree() |
Modifier and Type | Method and Description |
---|---|
void |
addTerm(String value)
This method is called for each term that is on
the SQL query.
|
void |
addTerm(String value,
String operationTree)
Adds a new term to the tree
|
BinaryTree.Node |
getRoot() |
void |
printTree()
Print all the tree
|
public void addTerm(String value)
value
- expression formattedpublic void addTerm(String value, String operationTree)
name
- value
- operationPair
- operationTree
- public void printTree()
public BinaryTree.Node getRoot()