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
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
ConstructorsConstructorDescriptionXQueryParserExtensionEE(XQueryParser parser, boolean updating, SchemaCompiler schemaCompiler) -
Method Summary
Modifier and TypeMethodDescriptionlookupStar(Expression lhs, SequenceType type, boolean allow40) Supporting code for lookup expressions (A?B) where B is the wildcard "*"Parse an update map|array Expression.protected ExpressionParse an ExprSinglevoidParse the "declare revalidation" declaration (XQuery Update).voidParse an updating function declaration (allowed in XQuery Update only)voidprocessSchemaImports(QueryModule module, List<XQueryParser.Import> schemaImports) Methods inherited from class com.saxonica.expr.XQueryParserExtensionPE
parseItemTypeDeclarationMethods inherited from class com.saxonica.expr.SaxonSyntaxExtension
handleExternalFunctionDeclaration, parseTypePatternMethods inherited from class net.sf.saxon.expr.parser.ParserExtension
needExtension, parseExtendedItemType
-
Constructor Details
-
XQueryParserExtensionEE
public XQueryParserExtensionEE(XQueryParser parser, boolean updating, SchemaCompiler schemaCompiler)
-
-
Method Details
-
lookupStar
Supporting code for lookup expressions (A?B) where B is the wildcard "*"- Overrides:
lookupStarin classParserExtension- Parameters:
lhs- the LHS operand of the lookup expressionallow40-- Returns:
- the result of parsing the expression
-
parseRevalidationDeclaration
Parse the "declare revalidation" declaration (XQuery Update). Syntax: <"declare" "revalidation"> ("strict" | "lax" | "skip")- Overrides:
parseRevalidationDeclarationin classParserExtension- Parameters:
p- the XPath parser- Throws:
XPathException- if the declaration is invalid or duplicated
-
parseUpdatingFunctionDeclaration
Parse an updating function declaration (allowed in XQuery Update only)- Overrides:
parseUpdatingFunctionDeclarationin classParserExtension- Parameters:
p- the XPath parser- Throws:
XPathException- if parsing fails PathMapor if updating functions are not allowed
-
parseExtendedExprSingle
Parse an ExprSingle- Overrides:
parseExtendedExprSinglein classParserExtension- Returns:
- the resulting subexpression
- Throws:
XPathException- if any error is encountered
-
processSchemaImports
public void processSchemaImports(QueryModule module, List<XQueryParser.Import> schemaImports) throws XPathException - Overrides:
processSchemaImportsin classParserExtension- Throws:
XPathException
-
parseDeepUpdateExpression
Parse an update map|array Expression.- Overrides:
parseDeepUpdateExpressionin classParserExtension- Returns:
- the parsed expression; except that this version of the method always throws an exception
- Throws:
XPathException- if a static error is found
-