Class BinaryExpression<T>

    • Field Detail

      • lineNumber

        private int lineNumber
      • leftExpression

        private Expression<?> leftExpression
      • rightExpression

        private Expression<?> rightExpression
    • Constructor Detail

      • BinaryExpression

        public BinaryExpression()
      • BinaryExpression

        public BinaryExpression​(Expression<?> left,
                                Expression<?> right)
        Sets the left and right expressions. This expression is assumed to be defined on the same line as the left expression.
    • Method Detail

      • setLeft

        public void setLeft​(Expression<?> left)
      • setRight

        public void setRight​(Expression<?> right)
      • getLeftExpression

        public Expression<?> getLeftExpression()
      • getRightExpression

        public Expression<?> getRightExpression()
      • setLineNumber

        public void setLineNumber​(int lineNumber)
        Sets the line number on which the expression is defined on.
        Parameters:
        lineNumber - the line number on which the expression is defined on.
      • getLineNumber

        public int getLineNumber()
        Description copied from interface: Expression
        Returns the line number on which the expression is defined on.
        Specified by:
        getLineNumber in interface Expression<T>
        Returns:
        the line number on which the expression is defined on.