@univerjs/engine-formula v0.5.4


Class: Interpreter

Defined in: submodules/univer/packages/engine-formula/src/engine/interpreter/interpreter.ts:33

Extends

Constructors

new Interpreter()

new Interpreter(_runtimeService): Interpreter

Defined in: submodules/univer/packages/engine-formula/src/engine/interpreter/interpreter.ts:34

Parameters

ParameterType
_runtimeServiceIFormulaRuntimeService

Returns

Interpreter

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96

Methods

checkAsyncNode()

checkAsyncNode(node): boolean

Defined in: submodules/univer/packages/engine-formula/src/engine/interpreter/interpreter.ts:91

Parameters

ParameterType
nodeNullable<BaseAstNode>

Returns

boolean


dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


execute()

execute(nodeData): FunctionVariantType

Defined in: submodules/univer/packages/engine-formula/src/engine/interpreter/interpreter.ts:62

Parameters

ParameterType
nodeDataIExecuteAstNodeData

Returns

FunctionVariantType


executeAsync()

executeAsync(nodeData): Promise<FunctionVariantType>

Defined in: submodules/univer/packages/engine-formula/src/engine/interpreter/interpreter.ts:38

Parameters

ParameterType
nodeDataIExecuteAstNodeData

Returns

Promise<FunctionVariantType>


executePreCalculateNode()

executePreCalculateNode(node): Nullable<FunctionVariantType>

Defined in: submodules/univer/packages/engine-formula/src/engine/interpreter/interpreter.ts:86

Parameters

ParameterType
nodePreCalculateNodeType

Returns

Nullable<FunctionVariantType>