Skip to main content

Class: NSDeclaration

Defined in: lang-xquery/src/ast/prolog.ts:25

XQuery declare namespace prefix = "uri" declaration binding a prefix to a namespace URI.

Implements​

Constructors​

Constructor​

new NSDeclaration(prefix, uri): NSDeclaration

Defined in: lang-xquery/src/ast/prolog.ts:26

Parameters​

ParameterTypeDescription
prefixstringThe namespace prefix being declared.
uriASTStringLiteralThe namespace URI bound to the prefix.

Returns​

NSDeclaration

Properties​

prefix​

prefix: string

Defined in: lang-xquery/src/ast/prolog.ts:28

The namespace prefix being declared.


uri​

uri: ASTStringLiteral

Defined in: lang-xquery/src/ast/prolog.ts:30

The namespace URI bound to the prefix.

Methods​

accept()​

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

Defined in: lang-xquery/src/ast/prolog.ts:33

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