Class TernaryOperation
Ternary operation between three expressions.
Inheritance
TernaryOperation
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
Properties
View Source
Left
Left operand. The first of three in a ternary operation.
Declaration
public Expression Left { get; }
Property Value
View Source
Middle
Middle operand. The second of three in a ternary operation.
Declaration
public Expression Middle { get; }
Property Value
View Source
Operator
The sort of ternary operation to apply to the three operands, e.g.,
Boolean.
Declaration
public TernaryOperationKind Operator { get; }
Property Value
View Source
Parents
Declaration
[JsonIgnore]
public override IReadOnlyList<Expression> Parents { get; }
Property Value
Overrides
View Source
Right
Right operand. The third of three in a ternary operation.
Declaration
public Expression Right { get; }
Property Value
Methods
View Source
Accept(IExpressionVisitor)
Declaration
public override void Accept(IExpressionVisitor visitor)
Parameters
Overrides
View Source
Clone(Table, IReadOnlyList<Expression>)
Declaration
public override TernaryOperation Clone(Table table, IReadOnlyList<Expression> parents)
Parameters
Returns
Overrides
Mangrove.MetricSetSyntaxTree.Expression<Mangrove.MetricSetSyntaxTree.ExpressionNodes.TernaryOperation, Mangrove.MetricSetSyntaxTree.Table>.Clone(Mangrove.MetricSetSyntaxTree.Table, System.Collections.Generic.IReadOnlyList<Mangrove.MetricSetSyntaxTree.Expression>)
Implements
Extension Methods