@univerjs/engine-formula v0.5.0-beta.1Docs


Class: Interpreter

Extends

Constructors

new Interpreter()

new Interpreter(_runtimeService): Interpreter

Parameters

ParameterType
_runtimeServiceIFormulaRuntimeService

Returns

Interpreter

Overrides

Disposable.constructor

Defined in

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

Properties

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

Methods

checkAsyncNode()

checkAsyncNode(node): boolean

Parameters

ParameterType
nodeNullable<BaseAstNode>

Returns

boolean

Defined in

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


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


execute()

execute(nodeData): FunctionVariantType

Parameters

ParameterType
nodeDataIExecuteAstNodeData

Returns

FunctionVariantType

Defined in

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


executeAsync()

executeAsync(nodeData): Promise<FunctionVariantType>

Parameters

ParameterType
nodeDataIExecuteAstNodeData

Returns

Promise<FunctionVariantType>

Defined in

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


executePreCalculateNode()

executePreCalculateNode(node): Nullable<FunctionVariantType>

Parameters

ParameterType
nodePreCalculateNodeType

Returns

Nullable<FunctionVariantType>

Defined in

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