public abstract class BinaryNode extends FormulaNode
Constructor and Description |
---|
BinaryNode() |
Modifier and Type | Method and Description |
---|---|
FormulaNode |
getLeftChild() |
protected abstract java.lang.String |
getOperator() |
FormulaNode |
getRightChild() |
void |
setLeftChild(FormulaNode child)
Set the left child node with the formula the child is.
|
void |
setRightChild(FormulaNode child)
Set the right child node with the formula the child is.
|
java.lang.String |
toString()
Write this node as a string
|
value
public void setLeftChild(FormulaNode child)
child
- The left child node.public void setRightChild(FormulaNode child)
child
- The right child node.public FormulaNode getLeftChild()
public FormulaNode getRightChild()
protected abstract java.lang.String getOperator()
public java.lang.String toString()
FormulaNode
toString
in class FormulaNode