BinaryExpression

sealed class BinaryExpression : ExpressionWithId

Known direct subclasses
And

The logical AND operator.

Divide

The DIVIDE operator, which calculates operand1 / operand2.

Equals

The equality operator, which evaluates to true when operand1 equals operand2.

GreaterThanOrEquals

The greater-than-or-equal-to operator, which evaluates to true when operand1 >= operand2.

GreaterThan

The greater-than operator, which evaluates to true when operand1 > operand2.

LessThanOrEquals

The less-than-or-equal-to operator, which evaluates to true when operand1 <= operand2.

LessThan

The less-than operator, which evaluates to true when operand1 < operand2.

Minus

The MINUS operator, which calculates operand1 - operand2.

Multiply

The MULTIPLY operator, which calculates operand1 * operand2.

NotEquals

The not-equals operator, which evaluates to true when operand1 is not equal to operand2.

Or

The logical OR operator.

Plus

The PLUS operator, which calculates operand1 + operand2.


Represents a binary expression with two operands: "operand1 operator operand2".

Summary

Protected constructors

BinaryExpression(operand1: Expression, operand2: Expression)
BinaryExpression(
    operand1: Expression,
    operand2: Expression,
    expressionId: String
)

Protected constructors

BinaryExpression

protected BinaryExpression(operand1: Expression, operand2: Expression)

BinaryExpression

protected BinaryExpression(
    operand1: Expression,
    operand2: Expression,
    expressionId: String
)

Public properties

operand1

val operand1Expression

operand2

val operand2Expression