Show / Hide Table of Contents

Class Literal

Literal constant (e.g., 1 or "hello").

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

The special value Null means the null value on any underlying platform, which generally has a platform-specific representation. Emitters that target platforms that represent null with some string other than "null" need to handle this case explicitly.

Constructors

View Source

Literal(Table, TypeKind, String)

Declaration
public Literal(Table table, TypeKind type, string content)
Parameters
Type Name Description
Table table
TypeKind type
String content

Fields

View Source

False

Content of a boolean literal with value "true".

Declaration
public const string False = "false"
Field Value
Type Description
String
Remarks

This value is universal for Mangrove and does not depend on the compute fabric. Emitters are responsible for producing the corresponding fabric-specific value.

View Source

MaxValue

Declaration
public const string MaxValue = "MAX_VALUE"
Field Value
Type Description
String
View Source

MinValue

Declaration
public const string MinValue = "MIN_VALUE"
Field Value
Type Description
String
View Source

NegativeInfinity

Declaration
public const string NegativeInfinity = "NEGATIVE_INFINITY"
Field Value
Type Description
String
View Source

Null

Content of a null literal, regardless of the type.

Declaration
public const string Null = "null"
Field Value
Type Description
String
Remarks

This value is universal for Mangrove and does not depend on the compute fabric. Emitters are responsible for producing the corresponding fabric-specific value.

View Source

PositiveInfinity

Declaration
public const string PositiveInfinity = "POSITIVE_INFINITY"
Field Value
Type Description
String
View Source

True

Content of a boolean literal with value "true".

Declaration
public const string True = "true"
Field Value
Type Description
String
Remarks

This value is universal for Mangrove and does not depend on the compute fabric. Emitters are responsible for producing the corresponding fabric-specific value.

Properties

View Source

Content

Raw content (e.g. "1" for an integer, or "hello" for a string) of this literal.

Declaration
public string Content { get; }
Property Value
Type Description
String
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 Literal Clone(Table table, IReadOnlyList<Expression> parents)
Parameters
Type Name Description
Table table
IReadOnlyList<Expression> parents
Returns
Type Description
Literal
Overrides
Mangrove.MetricSetSyntaxTree.Expression<Mangrove.MetricSetSyntaxTree.ExpressionNodes.Literal, 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