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
| Parameter | Type | Description |
|---|---|---|
axis | AxisType | The traversal axis. |
nodeTest | ASTItemType | The 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
| Parameter | Type |
|---|---|
visitor | XQueryVisitor<Ret, Arg> |
arg? | Arg |
Returns
Ret