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

@univerjs/engine-formula v0.4.2Docs


Class: LexerNode

Constructors

new LexerNode()

new LexerNode(): LexerNode

Returns

LexerNode

Methods

addChildren()

addChildren(children): void

Parameters

ParameterType
childrenstring | LexerNode

Returns

void

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:105 (opens in a new tab)


addChildrenFirst()

addChildrenFirst(children): void

Parameters

ParameterType
childrenstring | LexerNode

Returns

void

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:109 (opens in a new tab)


changeToParent()

changeToParent(newParentLexerNode): void

Parameters

ParameterType
newParentLexerNodeLexerNode

Returns

void

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:146 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:46 (opens in a new tab)


getChildren()

getChildren(): (string | LexerNode)[]

Returns

(string | LexerNode)[]

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:97 (opens in a new tab)


getDefinedNames()

getDefinedNames(): string[]

Returns

string[]

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:57 (opens in a new tab)


getFunctionDefinitionPrivacyVar()

getFunctionDefinitionPrivacyVar(): Nullable<LambdaPrivacyVarType>

Returns

Nullable<LambdaPrivacyVarType>

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:73 (opens in a new tab)


getLambdaId()

getLambdaId(): Nullable<string>

Returns

Nullable<string>

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:65 (opens in a new tab)


getLambdaParameter()

getLambdaParameter(): string

Returns

string

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:81 (opens in a new tab)


getParent()

getParent(): Nullable<LexerNode>

Returns

Nullable<LexerNode>

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:89 (opens in a new tab)


getStartIndex()

getStartIndex(): number

Returns

number

Defined in

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


getToken()

getToken(): string

Returns

string

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:113 (opens in a new tab)


hasDefinedNames()

hasDefinedNames(): boolean

Returns

boolean

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:130 (opens in a new tab)


removeChild()

removeChild(lexerNode): void

Parameters

ParameterType
lexerNodeLexerNode

Returns

void

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:156 (opens in a new tab)


replaceChild()

replaceChild(lexerNode, newLexerNode): void

Parameters

ParameterType
lexerNodeLexerNode
newLexerNodeLexerNode

Returns

void

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:134 (opens in a new tab)


serialize()

serialize(): {
  children: childrenSerialization;
  ed: number;
  st: number;
  token: string;
}

Returns

{
  children: childrenSerialization;
  ed: number;
  st: number;
  token: string;
}
NameTypeDefault valueDefined in
children(string | LexerNodeJson)[]childrenSerializationpackages/engine-formula/src/engine/analysis/lexer-node.ts:184 (opens in a new tab)
ednumber-packages/engine-formula/src/engine/analysis/lexer-node.ts:183 (opens in a new tab)
stnumber-packages/engine-formula/src/engine/analysis/lexer-node.ts:182 (opens in a new tab)
tokenstring-packages/engine-formula/src/engine/analysis/lexer-node.ts:181 (opens in a new tab)

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:166 (opens in a new tab)


setChildren()

setChildren(children): void

Parameters

ParameterType
children(string | LexerNode)[]

Returns

void

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:101 (opens in a new tab)


setDefinedNames()

setDefinedNames(definedNames): void

Parameters

ParameterType
definedNamesstring[]

Returns

void

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:126 (opens in a new tab)


setIndex()

setIndex(st, ed): void

Parameters

ParameterType
stnumber
ednumber

Returns

void

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:121 (opens in a new tab)


setLambdaId()

setLambdaId(lambdaId): void

Parameters

ParameterType
lambdaIdstring

Returns

void

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:69 (opens in a new tab)


setLambdaParameter()

setLambdaParameter(lambdaParameter): void

Parameters

ParameterType
lambdaParameterstring

Returns

void

Defined in

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


setLambdaPrivacyVar()

setLambdaPrivacyVar(lambdaPrivacyVar): void

Parameters

ParameterType
lambdaPrivacyVarLambdaPrivacyVarType

Returns

void

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:77 (opens in a new tab)


setParent()

setParent(lexerNode): void

Parameters

ParameterType
lexerNodeLexerNode

Returns

void

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:93 (opens in a new tab)


setToken()

setToken(token): void

Parameters

ParameterType
tokenstring

Returns

void

Defined in

packages/engine-formula/src/engine/analysis/lexer-node.ts:117 (opens in a new tab)


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