@univerjs/engine-formula v0.4.2 • Docs
Class: LexerNode
Constructors
new LexerNode()
new LexerNode(): LexerNode
Returns
Methods
addChildren()
addChildren(children): void
Parameters
Parameter | Type |
---|---|
children | string | 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
Parameter | Type |
---|---|
children | string | 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
Parameter | Type |
---|---|
newParentLexerNode | LexerNode |
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
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
Parameter | Type |
---|---|
lexerNode | LexerNode |
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
Parameter | Type |
---|---|
lexerNode | LexerNode |
newLexerNode | LexerNode |
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;
}
Name | Type | Default value | Defined in |
---|---|---|---|
children | (string | LexerNodeJson )[] | childrenSerialization | packages/engine-formula/src/engine/analysis/lexer-node.ts:184 (opens in a new tab) |
ed | number | - | packages/engine-formula/src/engine/analysis/lexer-node.ts:183 (opens in a new tab) |
st | number | - | packages/engine-formula/src/engine/analysis/lexer-node.ts:182 (opens in a new tab) |
token | string | - | 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
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
definedNames | string [] |
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
Parameter | Type |
---|---|
st | number |
ed | number |
Returns
void
Defined in
packages/engine-formula/src/engine/analysis/lexer-node.ts:121 (opens in a new tab)
setLambdaId()
setLambdaId(lambdaId): void
Parameters
Parameter | Type |
---|---|
lambdaId | string |
Returns
void
Defined in
packages/engine-formula/src/engine/analysis/lexer-node.ts:69 (opens in a new tab)
setLambdaParameter()
setLambdaParameter(lambdaParameter): void
Parameters
Parameter | Type |
---|---|
lambdaParameter | string |
Returns
void
Defined in
packages/engine-formula/src/engine/analysis/lexer-node.ts:85 (opens in a new tab)
setLambdaPrivacyVar()
setLambdaPrivacyVar(lambdaPrivacyVar): void
Parameters
Parameter | Type |
---|---|
lambdaPrivacyVar | LambdaPrivacyVarType |
Returns
void
Defined in
packages/engine-formula/src/engine/analysis/lexer-node.ts:77 (opens in a new tab)
setParent()
setParent(lexerNode): void
Parameters
Parameter | Type |
---|---|
lexerNode | LexerNode |
Returns
void
Defined in
packages/engine-formula/src/engine/analysis/lexer-node.ts:93 (opens in a new tab)
setToken()
setToken(token): void
Parameters
Parameter | Type |
---|---|
token | string |
Returns
void
Defined in
packages/engine-formula/src/engine/analysis/lexer-node.ts:117 (opens in a new tab)