Show / Hide Table of Contents

Class UnaryOperation

Operation on one argument, eg. arithmetic or logical negation.

Inheritance
Object
Expression
Expression<UnaryOperation, Table>
UnaryOperation
Implements
IVisitable<IExpressionVisitor>
ICloneable<UnaryOperation, Table, Expression>
ICloneable<Expression>
IDirectedAcyclicGraph<Expression>
Inherited Members
Expression<UnaryOperation, Table>.Table
Expression<UnaryOperation, Table>.Clone(Table, IReadOnlyList<Expression>)
Expression<UnaryOperation, 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 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
Type Name Description
Table table
UnaryOperationKind operation
TypeKind type
Expression operand

Properties

View Source

Operand

The argument of this unary operation.

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

Operation

The unary operation applied.

Declaration
public UnaryOperationKind Operation { get; }
Property Value
Type Description
UnaryOperationKind
View Source

Parents

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

Type

The type (e.g. Double or DateTime) of this literal.

Declaration
public TypeKind Type { get; }
Property Value
Type Description
TypeKind

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 UnaryOperation Clone(Table table, IReadOnlyList<Expression> parents)
Parameters
Type Name Description
Table table
IReadOnlyList<Expression> parents
Returns
Type Description
UnaryOperation
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
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