@univerjs-pro/engine-formula v0.5.4


Class: LexerNode

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:27

Constructors

new LexerNode()

new LexerNode(): LexerNode

Returns

LexerNode

Methods

addChildren()

addChildren(children): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:111

Parameters

ParameterType
childrenstring | LexerNode

Returns

void


addChildrenFirst()

addChildrenFirst(children): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:115

Parameters

ParameterType
childrenstring | LexerNode

Returns

void


changeToParent()

changeToParent(newParentLexerNode): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:152

Parameters

ParameterType
newParentLexerNodeLexerNode

Returns

void


dispose()

dispose(): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:46

Returns

void


getChildren()

getChildren(): (string | LexerNode)[]

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:103

Returns

(string | LexerNode)[]


getDefinedNames()

getDefinedNames(): string[]

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:63

Returns

string[]


getFunctionDefinitionPrivacyVar()

getFunctionDefinitionPrivacyVar(): Nullable<LambdaPrivacyVarType>

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:79

Returns

Nullable<LambdaPrivacyVarType>


getLambdaId()

getLambdaId(): Nullable<string>

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:71

Returns

Nullable<string>


getLambdaParameter()

getLambdaParameter(): string

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:87

Returns

string


getParent()

getParent(): Nullable<LexerNode>

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:95

Returns

Nullable<LexerNode>


getStartIndex()

getStartIndex(): number

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:67

Returns

number


getToken()

getToken(): string

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:119

Returns

string


hasDefinedNames()

hasDefinedNames(): boolean

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:136

Returns

boolean


removeChild()

removeChild(lexerNode): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:162

Parameters

ParameterType
lexerNodeLexerNode

Returns

void


replaceChild()

replaceChild(lexerNode, newLexerNode): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:140

Parameters

ParameterType
lexerNodeLexerNode
newLexerNodeLexerNode

Returns

void


serialize()

serialize(): {
  children: (string | LexerNodeJson)[];
  ed: number;
  st: number;
  token: string;
}

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:172

Returns

{
  children: (string | LexerNodeJson)[];
  ed: number;
  st: number;
  token: string;
}
NameTypeDefault valueDefined in
children(string | LexerNodeJson)[]childrenSerializationsubmodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:190
ednumber-submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:189
stnumber-submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:188
tokenstring-submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:187

setChildren()

setChildren(children): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:107

Parameters

ParameterType
children(string | LexerNode)[]

Returns

void


setDefinedNames()

setDefinedNames(definedNames): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:132

Parameters

ParameterType
definedNamesstring[]

Returns

void


setIndex()

setIndex(st, ed): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:127

Parameters

ParameterType
stnumber
ednumber

Returns

void


setLambdaId()

setLambdaId(lambdaId): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:75

Parameters

ParameterType
lambdaIdstring

Returns

void


setLambdaParameter()

setLambdaParameter(lambdaParameter): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:91

Parameters

ParameterType
lambdaParameterstring

Returns

void


setLambdaPrivacyVar()

setLambdaPrivacyVar(lambdaPrivacyVar): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:83

Parameters

ParameterType
lambdaPrivacyVarLambdaPrivacyVarType

Returns

void


setParent()

setParent(lexerNode): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:99

Parameters

ParameterType
lexerNodeLexerNode

Returns

void


setToken()

setToken(token): void

Defined in: submodules/univer/packages/engine-formula/src/engine/analysis/lexer-node.ts:123

Parameters

ParameterType
tokenstring

Returns

void