[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Expressions.SyntaxNode

Class SyntaxNode

Namespace
GrapeCity.Documents.Excel.Expressions
Assembly
GcDocs.Excel.dll

Represents a node in the syntax tree. The node can be terminal or non-terminal.

public abstract class SyntaxNode : ICloneable
Inheritance
object
SyntaxNode
Implements
System.ICloneable
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()

Constructors

SyntaxNode()

protected SyntaxNode()

Properties

Children

Gets children of a non-terminal node. Elements are not nullable.

public abstract IList<SyntaxNode> Children { get; }

Property Value

System.Collections.Generic.IList<T><SyntaxNode>

Methods

Clone()

Clones the syntax node if the node is mutable.

public SyntaxNode Clone()

Returns

SyntaxNode

If the node is mutable, returns the cloned object. Otherwise, returns the equivalent object from object pool.

Equals(object)

Checks whether the SyntaxNode equal to another.

public override bool Equals(object obj)

Parameters

obj object

Another syntax node.

Returns

bool

Whether the current node equals to the specified node.

GetHashCode()

This object doesn't support getting hash code, because all fields are mutable.

public override int GetHashCode()

Returns

int

The hash code of the current type.

Parse(string, ParseContext)

Loads a SyntaxNode from a string that contains formula, optionally specifying context.

public static SyntaxNode Parse(string text, ParseContext context)

Parameters

text string

A string that contains formula.

context ParseContext

A ParseContext that specifies base row, base column and R1C1 reference style.

Returns

SyntaxNode

A SyntaxNode populated from the string that contains formula.

Parse(string)

Loads a SyntaxNode from a string that contains formula, optionally specifying context.

public static SyntaxNode Parse(string text)

Parameters

text string

A string that contains formula.

Returns

SyntaxNode

A SyntaxNode populated from the string that contains formula.

ToString()

Returns the formula text for this node, optionally specifying context.

public override string ToString()

Returns

string

ToString(UnParseContext)

Returns the formula text for this node, optionally specifying context.

public virtual string ToString(UnParseContext context)

Parameters

context UnParseContext

Options for converting FormulaSyntaxTree to string.

Returns

string