Table of Contents

Class NumericLiteralNode<N>

Namespace
OpenLanguage.SpreadsheetML.Formula.Ast
Assembly
OpenLanguage.dll
public class NumericLiteralNode<N> : ExpressionNode where N : struct, INumber<N>, IBinaryNumber<N>, INumberBase<N>, IParsable<N>, IFormattable, IMinMaxValue<N>, IConvertible

Type Parameters

N
Inheritance
NumericLiteralNode<N>
Inherited Members

Constructors

NumericLiteralNode(string, List<Node>?, List<Node>?)

public NumericLiteralNode(string rawText, List<Node>? leadingWhitespace = null, List<Node>? trailingWhitespace = null)

Parameters

rawText string
leadingWhitespace List<Node>
trailingWhitespace List<Node>

NumericLiteralNode(string, string, List<Node>?, List<Node>?)

public NumericLiteralNode(string rawText, string formatSpecifier, List<Node>? leadingWhitespace = null, List<Node>? trailingWhitespace = null)

Parameters

rawText string
formatSpecifier string
leadingWhitespace List<Node>
trailingWhitespace List<Node>

NumericLiteralNode(N, List<Node>?, List<Node>?)

public NumericLiteralNode(N value, List<Node>? leadingWhitespace = null, List<Node>? trailingWhitespace = null)

Parameters

value N
leadingWhitespace List<Node>
trailingWhitespace List<Node>

NumericLiteralNode(N, string, List<Node>?, List<Node>?)

public NumericLiteralNode(N value, string formatSpecifier, List<Node>? leadingWhitespace = null, List<Node>? trailingWhitespace = null)

Parameters

value N
formatSpecifier string
leadingWhitespace List<Node>
trailingWhitespace List<Node>

Properties

FormatSpecifier

public NumericLiteralFormatSpecifier<N> FormatSpecifier { get; set; }

Property Value

NumericLiteralFormatSpecifier<N>

Precedence

Gets the operator precedence for this expression node.

public override int Precedence { get; }

Property Value

int

Value

public N? Value { get; set; }

Property Value

N?

Methods

Children<O>()

public override IEnumerable<O> Children<O>() where O : Node

Returns

IEnumerable<O>

Type Parameters

O

ReplaceChild(int, Node)

public override Node? ReplaceChild(int index, Node replacement)

Parameters

index int
replacement Node

Returns

Node

ToRawString()

Renders the core content of the node without its own leading/trailing whitespace.

public override string ToRawString()

Returns

string

The raw string representation of this node's specific content.