Package com.graphbuilder.math
Class OpNode
java.lang.Object
com.graphbuilder.math.Expression
com.graphbuilder.math.OpNode
A node of an expression tree that has exactly 2 children, a left child and a right child. After the
children are evaluated, a mathematical operation is applied and the result is returned.
-
Field Summary
FieldsFields inherited from class com.graphbuilder.math.Expression
parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringReturns the text symbol that represents the operation.voidvoidMethods inherited from class com.graphbuilder.math.Expression
checkBeforeAccept, eval, getFunctionNames, getParent, getVariableNames, isDescendent, toString
-
Field Details
-
leftChild
-
rightChild
-
-
Constructor Details
-
OpNode
-
-
Method Details
-
setLeftChild
-
setRightChild
-
getLeftChild
-
getRightChild
-
getSymbol
Returns the text symbol that represents the operation.
-