java.lang.Object
com.aquima.interactions.expressions.parser.ParseNodeBase
com.aquima.interactions.expressions.r7.parser.nodes.BinoptNode
All Implemented Interfaces:
IParseNode

public class BinoptNode extends ParseNodeBase
This node represents a binary operation on two nodes.
Since:
6.1
Author:
O. Kerpershoek
  • Constructor Details

    • BinoptNode

      public BinoptNode(IParseNode left, Operator opr, IParseNode right)
      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

      public IParseNode getLeft()
      This method returns the left-hand-side expression.
      Returns:
      the left-hand-side expression.
    • getRight

      public IParseNode getRight()
      This method returns the right-hand-side expression.
      Returns:
      the right-hand-side expression.
    • getOperator

      public Operator getOperator()
      This method returns the operator of the expression.
      Returns:
      The operator of the expression.
    • toString

      public String toString()
      Overrides:
      toString in class Object