Package com.saxonica.ee.update
Class XQueryParserExtensionEE
- java.lang.Object
-
- net.sf.saxon.expr.parser.ParserExtension
-
- com.saxonica.expr.SaxonSyntaxExtension
-
- com.saxonica.expr.XQueryParserExtensionPE
-
- com.saxonica.ee.update.XQueryParserExtensionEE
-
public class XQueryParserExtensionEE extends XQueryParserExtensionPE
Parser extension for syntax in XQuery Update and/or XQuery 3.0 that is supported only in -EE. This includes all syntax needed for XQuery Update.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.saxon.expr.parser.ParserExtension
ParserExtension.TemporaryXSLTVariableBinding
-
-
Constructor Summary
Constructors Constructor Description XQueryParserExtensionEE(boolean updating)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Expression
parseExtendedExprSingle(XPathParser p)
Parse an ExprSinglevoid
parseRevalidationDeclaration(XQueryParser p)
Parse the "declare revalidation" declaration (XQuery Update).void
parseUpdatingFunctionDeclaration(XQueryParser p)
Parse an updating function declaration (allowed in XQuery Update only)-
Methods inherited from class com.saxonica.expr.XQueryParserExtensionPE
parseItemTypeDeclaration
-
Methods inherited from class com.saxonica.expr.SaxonSyntaxExtension
handleExternalFunctionDeclaration, parseTypePattern
-
Methods inherited from class net.sf.saxon.expr.parser.ParserExtension
needExtension, parseExtendedItemType
-
-
-
-
Method Detail
-
parseRevalidationDeclaration
public void parseRevalidationDeclaration(XQueryParser p) throws XPathException
Parse the "declare revalidation" declaration (XQuery Update). Syntax: <"declare" "revalidation"> ("strict" | "lax" | "skip")- Overrides:
parseRevalidationDeclaration
in classParserExtension
- Parameters:
p
- the XPath parser- Throws:
XPathException
- if the declaration is invalid or duplicated
-
parseUpdatingFunctionDeclaration
public void parseUpdatingFunctionDeclaration(XQueryParser p) throws XPathException
Parse an updating function declaration (allowed in XQuery Update only)- Overrides:
parseUpdatingFunctionDeclaration
in classParserExtension
- Parameters:
p
- the XPath parser- Throws:
XPathException
- if parsing fails PathMapor if updating functions are not allowed
-
parseExtendedExprSingle
protected Expression parseExtendedExprSingle(XPathParser p) throws XPathException
Parse an ExprSingle- Overrides:
parseExtendedExprSingle
in classParserExtension
- Returns:
- the resulting subexpression
- Throws:
XPathException
- if any error is encountered
-
-