Table of Contents

Class AstNode

Namespace
OdfKit.Formula.AST
Assembly
OdfKit.dll

Represents the abstract base class for abstract syntax tree (AST) nodes. 表示抽象語法樹 (AST) 節點的抽象基底類別。

public abstract class AstNode
Inheritance
AstNode
Derived
Inherited Members

Constructors

AstNode()

protected AstNode()

Methods

Evaluate(IEvaluationContext)

Evaluates this node. 評估此節點的值。

public abstract object Evaluate(IEvaluationContext context)

Parameters

context IEvaluationContext

The evaluation context. / 評估內容模型。

Returns

object

The evaluated result object. / 評估後的結果物件。

GetRanges(IEvaluationContext)

Gets the cell ranges contained by this node. 取得此節點包含的儲存格範圍。

public virtual List<OdfCellRange> GetRanges(IEvaluationContext context)

Parameters

context IEvaluationContext

The evaluation context. / 評估內容模型。

Returns

List<OdfCellRange>

The cell range list. / 儲存格範圍清單。

Serialize()

Serializes this node to a formula string. 將此節點序列化為公式字串。

public abstract string Serialize()

Returns

string

The serialized formula string. / 序列化後的公式字串。