Search Results for

    Show / Hide Table of Contents

    Class BinaryExpression

    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.

    Inheritance
    System.Object
    Node
    Expression
    BinaryExpression
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: TimeCockpit.Data.QueryLanguage.Syntax
    Assembly: TimeCockpit.Data.dll
    Syntax
    public class BinaryExpression : Expression

    Constructors

    BinaryExpression(Expression, BinaryOperator, Expression)

    Initializes a new instance of the BinaryExpression class.

    Declaration
    public BinaryExpression(Expression left, BinaryOperator op, Expression right)
    Parameters
    Type Name Description
    Expression left

    The left operand expression.

    BinaryOperator op

    The operator combining the left and right operands.

    Expression right

    The right operand expression.

    Properties

    Left

    Gets the left-hand operand of the expression.

    Declaration
    public Expression Left { get; }
    Property Value
    Type Description
    Expression

    Operator

    Gets the operator of the binary expression.

    Declaration
    public BinaryOperator Operator { get; }
    Property Value
    Type Description
    BinaryOperator

    Right

    Gets the right-hand operand of the expression.

    Declaration
    public Expression Right { get; }
    Property Value
    Type Description
    Expression

    Methods

    Accept(Visitor)

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

    Declaration
    public override Node Accept(Visitor visitor)
    Parameters
    Type Name Description
    Visitor visitor

    The visitor to dispatch.

    Returns
    Type Description
    Node

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

    Overrides
    Node.Accept(Visitor)
    In This Article
    Back to top Copyright © 2020 software architects gmbh