Table of Contents

Class BinaryExpression

Namespace
TimeCockpit.Data.QueryLanguage.Syntax
Assembly
TimeCockpit.Data.dll

Abstract node type representing binary expressions. BinaryExpression acts as the node type for all binary operations. The semantics of such a node depends on the operator.

public class BinaryExpression : Expression
Inheritance
Object
BinaryExpression
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

BinaryExpression(Expression, BinaryOperator, Expression)

Initializes a new instance of the BinaryExpression class.

public BinaryExpression(Expression left, BinaryOperator op, Expression right)

Parameters

left Expression

The left operand expression.

op BinaryOperator

The operator combining the left and right operands.

right Expression

The right operand expression.

Properties

Left

Gets the left-hand operand of the expression.

public Expression Left { get; }

Property Value

Expression

Operator

Gets the operator of the binary expression.

public BinaryOperator Operator { get; }

Property Value

BinaryOperator

Right

Gets the right-hand operand of the expression.

public Expression Right { get; }

Property Value

Expression

Methods

Accept(Visitor)

Dispatches the correct VisitQuery(Query) call for this instance.

public override Node Accept(Visitor visitor)

Parameters

visitor Visitor

The visitor to dispatch.

Returns

Node

Returns the value returned by the call to VisitQuery(Query).