public class AddNode extends OpNode
leftChild, rightChildparent| Constructor and Description |
|---|
AddNode(Expression leftChild,
Expression rightChild) |
| Modifier and Type | Method and Description |
|---|---|
double |
eval(VarMap v,
FuncMap f)
Adds the evaluation of the left side to the evaluation of the right side and returns the result.
|
String |
getSymbol()
Returns the text symbol that represents the operation.
|
getLeftChild, getRightChild, setLeftChild, setRightChildcheckBeforeAccept, getFunctionNames, getParent, getVariableNames, isDescendent, toStringpublic AddNode(Expression leftChild, Expression rightChild)
public double eval(VarMap v, FuncMap f)
eval in class ExpressionCopyright © 2015. All rights reserved.