Skip to main content

Class: PathExpr

Defined in: lang-xquery/src/ast/path.ts:6

XPath path expression composed of a sequence of steps, e.g. /a/b[c]/d.

Implements

Constructors

Constructor

new PathExpr(steps, start?): PathExpr

Defined in: lang-xquery/src/ast/path.ts:7

Parameters

ParameterTypeDescription
stepsASTNode[]The ordered path steps (axis steps, filter expressions, etc.).
start?"//" | "/"Whether the path is anchored: '/' for an absolute path from the document root, '//' for an abbreviated absolute descendant path, or absent for a relative path.

Returns

PathExpr

Properties

start?

optional start?: "//" | "/"

Defined in: lang-xquery/src/ast/path.ts:14

Whether the path is anchored: '/' for an absolute path from the document root, '//' for an abbreviated absolute descendant path, or absent for a relative path.


steps

steps: ASTNode[]

Defined in: lang-xquery/src/ast/path.ts:9

The ordered path steps (axis steps, filter expressions, etc.).

Methods

accept()

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

Defined in: lang-xquery/src/ast/path.ts:17

Dispatches this node to the matching method on visitor.

Type Parameters

Type Parameter
Ret
Arg

Parameters

ParameterType
visitorXQueryVisitor<Ret, Arg>
arg?Arg

Returns

Ret

Implementation of

ASTNode.accept