com.saxonica.update
Class UpdateParser

java.lang.Object
  extended by net.sf.saxon.expr.ExpressionParser
      extended by net.sf.saxon.query.QueryParser
          extended by com.saxonica.update.UpdateParser

public class UpdateParser
extends QueryParser

Parser for the XQuery Update extensions


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.saxon.query.QueryParser
QueryParser.LetClause
 
Nested classes/interfaces inherited from class net.sf.saxon.expr.ExpressionParser
ExpressionParser.FLWORClause, ExpressionParser.ForClause, ExpressionParser.TemporaryContainer
 
Field Summary
 
Fields inherited from class net.sf.saxon.query.QueryParser
executable, importedModules, queryVersion
 
Fields inherited from class net.sf.saxon.expr.ExpressionParser
compileWithTracing, defaultContainer, env, language, nameChecker, rangeVariables, scanOnly, SEQUENCE_TYPE, t, XPATH, XQUERY, XSLT_PATTERN
 
Constructor Summary
UpdateParser()
           
 
Method Summary
 int getPermittedFunctions()
          Get the permitted set of standard functions in this environment
protected  Expression parseExprSingle()
          Parse an ExprSingle
protected  void parseRevalidationDeclaration()
          Parse the "declare revalidation" declaration.
protected  void parseUpdatingFunctionDeclaration()
          Parse an updating function declaration (allowed in XQuery Update only)
 
Methods inherited from class net.sf.saxon.query.QueryParser
applyModuleImport, getExecutable, getLanguage, grumble, lookAhead, makeSimpleContent, makeStringJoin, makeStringLiteral, makeXQueryExpression, newParser, parseConstructor, parseContextItemDeclaration, parseDecimalFormatDeclaration, parseDefaultDecimalFormat, parseExtensionExpression, parseForExpression, parseFunctionDeclaration, parseGroupByClause, parseLibraryModule, parseNamedNamespaceConstructor, parseNamespaceConstructor, parseOuterForClause, parseTypeswitchExpression, parseValidateExpression, processGroupingExpression, readCollationName, setDefaultValue, setDisableCycleChecks, setExecutable
 
Methods inherited from class net.sf.saxon.expr.ExpressionParser
currentTokenDisplay, declareRangeVariable, expect, findRangeVariable, getRangeVariableStack, getTokenizer, grumble, grumble, isCompileWithTracing, isKeyword, isNamespaceTestAllowed, makeLocalNameTest, makeNameCode, makeNameCodeSilently, makeNamespaceTest, makeNameTest, makeStructuredQName, makeTracer, nextToken, parse, parseDynamicFunctionCall, parseExpression, parseFunctionCall, parseFunctionItemType, parseInlineFunction, parseItemType, parseLiteralFunctionItem, parseMappingExpression, parseNodeTest, parseParenthesizedItemType, parsePattern, parseRelativePath, parseRemainingPath, parseSequenceType, parseSequenceType, parseStepExpression, parseTryCatchExpression, setCompileWithTracing, setLocation, setLocation, setRangeVariableStack, setScanOnly, undeclareRangeVariable, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateParser

public UpdateParser()
Method Detail

getPermittedFunctions

public int getPermittedFunctions()
Get the permitted set of standard functions in this environment

Overrides:
getPermittedFunctions in class QueryParser

parseRevalidationDeclaration

protected void parseRevalidationDeclaration()
                                     throws XPathException
Parse the "declare revalidation" declaration. Syntax: <"declare" "revalidation"> ("strict" | "lax" | "skip")

Overrides:
parseRevalidationDeclaration in class QueryParser
Throws:
XPathException

parseUpdatingFunctionDeclaration

protected void parseUpdatingFunctionDeclaration()
                                         throws XPathException
Parse an updating function declaration (allowed in XQuery Update only)

Overrides:
parseUpdatingFunctionDeclaration in class QueryParser
Throws:
XPathException

parseExprSingle

protected Expression parseExprSingle()
                              throws XPathException
Parse an ExprSingle

Overrides:
parseExprSingle in class ExpressionParser
Returns:
the resulting subexpression
Throws:
XPathException - if any error is encountered


Copyright (c) Saxonica Limited. All rights reserved.