Skip to main content

Class: CastExpr

Defined in: lang-xquery/src/ast/expression.ts:164

XQuery expr cast as AtomicType expression.

Implements

Constructors

Constructor

new CastExpr(expr, type): CastExpr

Defined in: lang-xquery/src/ast/expression.ts:165

Parameters

ParameterTypeDescription
exprASTNodeThe expression to cast.
typeXQueryIdentifierThe target atomic type name.

Returns

CastExpr

Properties

expr

expr: ASTNode

Defined in: lang-xquery/src/ast/expression.ts:167

The expression to cast.


type

type: XQueryIdentifier

Defined in: lang-xquery/src/ast/expression.ts:169

The target atomic type name.

Methods

accept()

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

Defined in: lang-xquery/src/ast/expression.ts:172

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