public abstract class OpNode extends Expression
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
leftChild |
protected Expression |
rightChild |
parent| Constructor and Description |
|---|
OpNode(Expression leftChild,
Expression rightChild) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
getLeftChild() |
Expression |
getRightChild() |
abstract String |
getSymbol()
Returns the text symbol that represents the operation.
|
void |
setLeftChild(Expression x) |
void |
setRightChild(Expression x) |
checkBeforeAccept, eval, getFunctionNames, getParent, getVariableNames, isDescendent, toStringprotected Expression leftChild
protected Expression rightChild
public OpNode(Expression leftChild, Expression rightChild)
public void setLeftChild(Expression x)
public void setRightChild(Expression x)
public Expression getLeftChild()
public Expression getRightChild()
public abstract String getSymbol()
Copyright © 2015. All rights reserved.