API Reference
@univerjs
@univerjs/engine-formula
classes
Interpreter

@univerjs/engine-formula v0.4.2Docs


Class: Interpreter

Extends

Constructors

new Interpreter()

new Interpreter(_runtimeService): Interpreter

Parameters

ParameterType
_runtimeServiceIFormulaRuntimeService

Returns

Interpreter

Overrides

Disposable.constructor

Defined in

packages/engine-formula/src/engine/interpreter/interpreter.ts:33 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

checkAsyncNode()

checkAsyncNode(node): boolean

Parameters

ParameterType
nodeBaseAstNode

Returns

boolean

Defined in

packages/engine-formula/src/engine/interpreter/interpreter.ts:90 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


execute()

execute(nodeData): FunctionVariantType

Parameters

ParameterType
nodeDataIExecuteAstNodeData

Returns

FunctionVariantType

Defined in

packages/engine-formula/src/engine/interpreter/interpreter.ts:61 (opens in a new tab)


executeAsync()

executeAsync(nodeData): Promise<FunctionVariantType>

Parameters

ParameterType
nodeDataIExecuteAstNodeData

Returns

Promise<FunctionVariantType>

Defined in

packages/engine-formula/src/engine/interpreter/interpreter.ts:37 (opens in a new tab)


executePreCalculateNode()

executePreCalculateNode(node): Nullable<FunctionVariantType>

Parameters

ParameterType
nodePreCalculateNodeType

Returns

Nullable<FunctionVariantType>

Defined in

packages/engine-formula/src/engine/interpreter/interpreter.ts:85 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.