Class UnaryOperation
Operation on one argument, eg. arithmetic or logical negation.
Inheritance
UnaryOperation
Assembly: MetricSetSyntaxTree.dll
Syntax
public class UnaryOperation : Expression<UnaryOperation, Table>, IVisitable<IExpressionVisitor>, ICloneable<UnaryOperation, Table, Expression>, ICloneable<Expression>, IDirectedAcyclicGraph<Expression>
Constructors
View Source
UnaryOperation(Table, UnaryOperationKind, TypeKind, Expression)
Declaration
public UnaryOperation(Table table, UnaryOperationKind operation, TypeKind type, Expression operand)
Parameters
Properties
View Source
Operand
The argument of this unary operation.
Declaration
public Expression Operand { get; }
Property Value
View Source
Operation
The unary operation applied.
Declaration
public UnaryOperationKind Operation { get; }
Property Value
View Source
Parents
Declaration
[JsonIgnore]
public override IReadOnlyList<Expression> Parents { get; }
Property Value
Overrides
View Source
Type
The type (e.g. Double or DateTime) of this literal.
Declaration
public TypeKind Type { 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 UnaryOperation Clone(Table table, IReadOnlyList<Expression> parents)
Parameters
Returns
Overrides
Mangrove.MetricSetSyntaxTree.Expression<Mangrove.MetricSetSyntaxTree.ExpressionNodes.UnaryOperation, Mangrove.MetricSetSyntaxTree.Table>.Clone(Mangrove.MetricSetSyntaxTree.Table, System.Collections.Generic.IReadOnlyList<Mangrove.MetricSetSyntaxTree.Expression>)
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods