Class Literal
Literal constant (e.g., 1 or "hello").
Assembly: MetricSetSyntaxTree.dll
Syntax
public class Literal : Expression<Literal, Table>, IVisitable<IExpressionVisitor>, ICloneable<Literal, Table, Expression>, ICloneable<Expression>, IDirectedAcyclicGraph<Expression>
Constructors
View Source
Literal(Table, TypeKind, String)
Declaration
public Literal(Table table, TypeKind type, string content)
Parameters
Fields
View Source
False
Content of a boolean literal with value "true".
Declaration
public const string False = "false"
Field Value
View Source
MaxValue
Declaration
public const string MaxValue = "MAX_VALUE"
Field Value
View Source
MinValue
Declaration
public const string MinValue = "MIN_VALUE"
Field Value
View Source
NegativeInfinity
Declaration
public const string NegativeInfinity = "NEGATIVE_INFINITY"
Field Value
View Source
Null
Content of a null literal, regardless of the type.
Declaration
public const string Null = "null"
Field Value
View Source
PositiveInfinity
Declaration
public const string PositiveInfinity = "POSITIVE_INFINITY"
Field Value
View Source
True
Content of a boolean literal with value "true".
Declaration
public const string True = "true"
Field 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
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 Literal Clone(Table table, IReadOnlyList<Expression> parents)
Parameters
Returns
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
Overrides
Implements
Extension Methods