Class BinaryInfixOperatorExpression

    • Constructor Detail

      • BinaryInfixOperatorExpression

        public BinaryInfixOperatorExpression​(ParserToken token,
                                             Expression left,
                                             Expression right)
        Instantiates a new BinaryInfixOperatorExpression.
        Parameters:
        token - the token representing the operator
        left - the left-hand expression
        right - the right-hand expression
    • Method Detail

      • getLeft

        public Expression getLeft()
        Gets the left-hand expression
        Returns:
        the left-hand expression
      • getOperator

        public String getOperator()
        Gets the operator.
        Returns:
        the operator
      • getRight

        public Expression getRight()
        Gets the right-hand expression.
        Returns:
        the right-hand expression.