Class BinoptNode
java.lang.Object
com.aquima.interactions.expressions.parser.ParseNodeBase
com.aquima.interactions.expressions.r7.parser.nodes.BinoptNode
- All Implemented Interfaces:
IParseNode
This node represents a binary operation on two nodes.
- Since:
- 6.1
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionBinoptNode
(IParseNode left, Operator opr, IParseNode right) Constructs the binary operation node with the required arguments. -
Method Summary
Methods inherited from class com.aquima.interactions.expressions.parser.ParseNodeBase
getEndPosition, getPosition, setPosition
-
Constructor Details
-
BinoptNode
Constructs the binary operation node with the required arguments.- Parameters:
left
- The left-hand-side of the operator.opr
- The operator of the expression node.right
- The right-hand-side of the operator.
-
-
Method Details
-
getLeft
This method returns the left-hand-side expression.- Returns:
- the left-hand-side expression.
-
getRight
This method returns the right-hand-side expression.- Returns:
- the right-hand-side expression.
-
getOperator
This method returns the operator of the expression.- Returns:
- The operator of the expression.
-
toString
-