Skip to main content

Class: NodePattern

Defined in: lang-cypher/src/ast/pattern.ts:29

A node pattern (variable:Label {props}).

Implements​

Constructors​

Constructor​

new NodePattern(variable, labels?, props?): NodePattern

Defined in: lang-cypher/src/ast/pattern.ts:30

Parameters​

ParameterTypeDefault valueDescription
variableCypherIdentifierundefinedOptional node variable; null if the node is anonymous.
labelsCypherIdentifier[][]Required node labels; empty if unconstrained.
propsASTMapLiteral | ASTIdentifiernullProperty constraints as a map literal or parameter reference; null if none.

Returns​

NodePattern

Properties​

labels​

labels: CypherIdentifier[] = []

Defined in: lang-cypher/src/ast/pattern.ts:34

Required node labels; empty if unconstrained.


props​

props: ASTMapLiteral | ASTIdentifier = null

Defined in: lang-cypher/src/ast/pattern.ts:36

Property constraints as a map literal or parameter reference; null if none.


variable​

variable: CypherIdentifier

Defined in: lang-cypher/src/ast/pattern.ts:32

Optional node variable; null if the node is anonymous.

Methods​

accept()​

accept<Ret, Arg>(visitor, arg?): Ret

Defined in: lang-cypher/src/ast/pattern.ts:39

Dispatches this node to the matching method on visitor.

Type Parameters​

Type Parameter
Ret
Arg

Parameters​

ParameterType
visitorCypherVisitor<Ret, Arg>
arg?Arg

Returns​

Ret

Implementation of​

ASTNode.accept