Show / Hide Table of Contents

Class BinaryOperation

Binary operation between two expressions, e.g., Plus, And.

Inheritance
Object
Expression
Expression<BinaryOperation, Table>
BinaryOperation
Implements
IVisitable<IExpressionVisitor>
ICloneable<BinaryOperation, Table, Expression>
ICloneable<Expression>
IDirectedAcyclicGraph<Expression>
Inherited Members
Expression<BinaryOperation, Table>.Table
Expression<BinaryOperation, Table>.Clone(Table, IReadOnlyList<Expression>)
Expression<BinaryOperation, Table>.Clone(IReadOnlyList<Expression>)
Expression.Table
Expression.Clone(IReadOnlyList<Expression>)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: Mangrove.MetricSetSyntaxTree.ExpressionNodes
Assembly: MetricSetSyntaxTree.dll
Syntax
public class BinaryOperation : Expression<BinaryOperation, Table>, IVisitable<IExpressionVisitor>, ICloneable<BinaryOperation, Table, Expression>, ICloneable<Expression>, IDirectedAcyclicGraph<Expression>

Constructors

View Source

BinaryOperation(Table, BinaryOperationKind, Expression, Expression)

Declaration
public BinaryOperation(Table table, BinaryOperationKind operator, Expression left, Expression right)
Parameters
Type Name Description
Table table
BinaryOperationKind operator
Expression left
Expression right

Properties

View Source

Left

Left operand.

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

Operator

The operator applied to these two arguments, e.g. Plus.

Declaration
public BinaryOperationKind Operator { get; }
Property Value
Type Description
BinaryOperationKind
View Source

Parents

Declaration
[JsonIgnore]
public override IReadOnlyList<Expression> Parents { get; }
Property Value
Type Description
IReadOnlyList<Expression>
Overrides
Expression.Parents
View Source

Right

Right operand.

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

Methods

View Source

Accept(IExpressionVisitor)

Declaration
public override void Accept(IExpressionVisitor visitor)
Parameters
Type Name Description
IExpressionVisitor visitor
Overrides
Expression.Accept(IExpressionVisitor)
View Source

Clone(Table, IReadOnlyList<Expression>)

Declaration
public override BinaryOperation Clone(Table table, IReadOnlyList<Expression> parents)
Parameters
Type Name Description
Table table
IReadOnlyList<Expression> parents
Returns
Type Description
BinaryOperation
Overrides
Mangrove.MetricSetSyntaxTree.Expression<Mangrove.MetricSetSyntaxTree.ExpressionNodes.BinaryOperation, Mangrove.MetricSetSyntaxTree.Table>.Clone(Mangrove.MetricSetSyntaxTree.Table, System.Collections.Generic.IReadOnlyList<Mangrove.MetricSetSyntaxTree.Expression>)
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Expression.ToString()

Implements

IVisitable<TVisitor>
ICloneable<TSubnode, TIdentifier, TNode>
ICloneable<T>
IDirectedAcyclicGraph<T>

Extension Methods

ExpressionExtensions.WrapUniqueName(Expression, String)
ExpressionExtensions.WrapName(Expression, String)
ExpressionExtensions.Unwrap(Expression, Boolean)
ExpressionExtensions.UnwrapParentheses(Expression)
ExpressionExtensions.NeedsColumnReferenceWrap(Expression)
ExpressionExtensions.TopParentsOfType<TParent>(Expression)
ExpressionExtensions.References(Expression, ISet<Table>)
ExpressionExtensions.IsAggregation(Expression)
ExpressionExtensions.IsOperation(Expression)
ExpressionExtensions.IsConstant(Expression)
ExpressionExtensions.Type(Expression)
ExpressionExtensions.IsOfNullableType(Expression)
ExpressionExtensions.IsOfNonNullableType(Expression)
IDirectedAcyclicGraphExtensions.Ancestors(Expression, Boolean)
IDirectedAcyclicGraphExtensions.Closure(Expression)
ObjectExtensions.EventId(Object)
  • View Source
Back to top Generated by DocFX