Skip to main content

Class: PathAxis

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

A single path step combining an axis, a node test, and zero or more predicates, e.g. child::element(foo)[predicate].

Remarks

When the axis is not attribute and the node test has a name but no explicit kind, the constructor defaults the kind to ItemKind.ELEMENT.

Implements

Constructors

Constructor

new PathAxis(axis, nodeTest): PathAxis

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

Parameters

ParameterTypeDescription
axisAxisTypeThe traversal axis.
nodeTestASTItemTypeThe item-type node test that candidate nodes must satisfy.

Returns

PathAxis

Properties

axis

axis: AxisType

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

The traversal axis.


nodeTest

nodeTest: ASTItemType

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

The item-type node test that candidate nodes must satisfy.


predicates

predicates: PathPredicate[] = []

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

Filter predicates applied to each candidate node after the node test.

Methods

accept()

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

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

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