Class: CypherIdentifier
Defined in: lang-cypher/src/ast/literal.ts:9
Cypher identifier that handles backtick quoting and dot-separated qualified
names (e.g. `My Label` or graph.node).
Extends
Constructors
Constructor
new CypherIdentifier(
idOriginal):CypherIdentifier
Defined in: lang-cypher/src/ast/literal.ts:10
Parameters
| Parameter | Type | Description |
|---|---|---|
idOriginal | string | Raw identifier text exactly as it appeared in the source, before parsing. |
Returns
CypherIdentifier
Overrides
Properties
aggregate?
optionalaggregate?:AggregateCall
Defined in: core/dist/ast.d.ts:76
Set when this identifier refers to an aggregate call in a GROUP BY context.
Inherited from
idOriginal
idOriginal:
string
Defined in: lang-cypher/src/ast/literal.ts:12
Raw identifier text exactly as it appeared in the source, before parsing.
parts
parts: (
string|number|symbol)[]
Defined in: core/dist/ast.d.ts:78
Ordered sequence of name parts that form the qualified identifier.
Inherited from
Methods
[iterator]()
[iterator]():
ArrayIterator<string|number|symbol>
Defined in: core/dist/ast.d.ts:80
Iterates over parts in order.
Returns
ArrayIterator<string | number | symbol>
Inherited from
accept()
accept<
Ret,Arg>(visitor,arg?):Ret
Defined in: lang-cypher/src/ast/literal.ts:19
ASTNode.accept
Type Parameters
| Type Parameter |
|---|
Ret |
Arg |
Parameters
| Parameter | Type |
|---|---|
visitor | CypherVisitor<Ret, Arg> |
arg? | Arg |
Returns
Ret
Overrides
equals()
equals(
other):boolean
Defined in: core/dist/ast.d.ts:86
Returns true when other has the same parts in the same order.
Parameters
| Parameter | Type |
|---|---|
other | ASTIdentifier |
Returns
boolean
Inherited from
parseId()
protectedparseId(id):string
Defined in: lang-cypher/src/ast/literal.ts:24
Strips surrounding backtick delimiters from a single name part.
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
string
splitId()
protectedsplitId(id):string[]
Defined in: lang-cypher/src/ast/literal.ts:35
Splits a raw identifier string into individual name parts at unquoted dots, respecting backtick-quoted segments that may themselves contain dots.
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
string[]
fromParts()
staticfromParts(parts):ASTIdentifier
Defined in: core/dist/ast.d.ts:84
Creates an ASTIdentifier from a pre-built parts array.
Parameters
| Parameter | Type |
|---|---|
parts | (string | number | symbol)[] |