Show / Hide Table of Contents

Class TernaryOperation

Ternary operation between three expressions.

Inheritance
Object
Expression
Expression<TernaryOperation, Table>
TernaryOperation
Implements
IVisitable<IExpressionVisitor>
ICloneable<TernaryOperation, Table, Expression>
ICloneable<Expression>
IDirectedAcyclicGraph<Expression>
Inherited Members
Expression<TernaryOperation, Table>.Table
Expression<TernaryOperation, Table>.Clone(Table, IReadOnlyList<Expression>)
Expression<TernaryOperation, Table>.Clone(IReadOnlyList<Expression>)
Expression.Table
Expression.ToString()
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 TernaryOperation : Expression<TernaryOperation, Table>, IVisitable<IExpressionVisitor>, ICloneable<TernaryOperation, Table, Expression>, ICloneable<Expression>, IDirectedAcyclicGraph<Expression>

Constructors

View Source

TernaryOperation(Table, TernaryOperationKind, Expression, Expression, Expression)

Declaration
public TernaryOperation(Table table, TernaryOperationKind operator, Expression left, Expression middle, Expression right)
Parameters
Type Name Description
Table table
TernaryOperationKind operator
Expression left
Expression middle
Expression right

Properties

View Source

Left

Left operand. The first of three in a ternary operation.

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

Middle

Middle operand. The second of three in a ternary operation.

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

Operator

The sort of ternary operation to apply to the three operands, e.g., Boolean.

Declaration
public TernaryOperationKind Operator { get; }
Property Value
Type Description
TernaryOperationKind
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. The third of three in a ternary operation.

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 TernaryOperation Clone(Table table, IReadOnlyList<Expression> parents)
Parameters
Type Name Description
Table table
IReadOnlyList<Expression> parents
Returns
Type Description
TernaryOperation
Overrides
Mangrove.MetricSetSyntaxTree.Expression<Mangrove.MetricSetSyntaxTree.ExpressionNodes.TernaryOperation, Mangrove.MetricSetSyntaxTree.Table>.Clone(Mangrove.MetricSetSyntaxTree.Table, System.Collections.Generic.IReadOnlyList<Mangrove.MetricSetSyntaxTree.Expression>)

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