Package com.graphbuilder.math
Class AddNode
java.lang.Object
com.graphbuilder.math.Expression
com.graphbuilder.math.OpNode
com.graphbuilder.math.AddNode
A node of an expression tree, represented by the symbol "+".
-
Field Summary
Fields inherited from class com.graphbuilder.math.OpNode
leftChild, rightChildFields inherited from class com.graphbuilder.math.Expression
parent -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.graphbuilder.math.OpNode
getLeftChild, getRightChild, setLeftChild, setRightChildMethods inherited from class com.graphbuilder.math.Expression
checkBeforeAccept, getFunctionNames, getParent, getVariableNames, isDescendent, toString
-
Constructor Details
-
AddNode
-
-
Method Details
-
eval
Adds the evaluation of the left side to the evaluation of the right side and returns the result.- Specified by:
evalin classExpression
-
getSymbol
Description copied from class:OpNodeReturns the text symbol that represents the operation.
-