Package com.saxonica.ee.update
Class UpdateParser
java.lang.Object
com.saxonica.ee.update.UpdateParser
Parser utility methods for the XQuery Update extensions
-
Method Summary
Modifier and TypeMethodDescriptionstatic Expression
Parse a delete expression.static Expression
Parse the insert expression Syntax: insert_node Expr choice Expr choice: "as first into" | "as last into" | "into" | "after" | "before"static Expression
Parse a "rename" expression.static Expression
Parse a "replace node" expression.static Expression
Parse a "replace value" expression.static Expression
Parse the "transform" (that is, copy/modify/return) expression Syntax: "copy" "$" VarName ":=" ExprSingle ("," "$" VarName ":=" ExprSingle)* "modify" ExprSingle "return" ExprSingle
-
Method Details
-
parseTransformExpression
Parse the "transform" (that is, copy/modify/return) expression Syntax: "copy" "$" VarName ":=" ExprSingle ("," "$" VarName ":=" ExprSingle)* "modify" ExprSingle "return" ExprSingle- Parameters:
p
- the calling expression parser- Returns:
- the resulting expression
- Throws:
XPathException
- in the event of a syntax error
-
parseInsertExpression
Parse the insert expression Syntax: insert_node Expr choice Expr choice: "as first into" | "as last into" | "into" | "after" | "before"- Parameters:
p
- the calling expression parser- Returns:
- the InsertExpression
- Throws:
XPathException
- in the event of a syntax error
-
parseDeleteExpression
Parse a delete expression. Syntax: delete_node TargetExpr- Parameters:
p
- the calling expression parser- Returns:
- the expression
- Throws:
XPathException
- in the event of a syntax error
-
parseReplaceNodeExpression
Parse a "replace node" expression. Syntax: replace_node TargetExpr with ExprSingle- Parameters:
p
- the calling expression parser- Returns:
- the expression
- Throws:
XPathException
- in the event of a syntax error
-
parseReplaceValueExpression
Parse a "replace value" expression. Syntax: replace_value "of" "node" TargetExpr with ExprSingle- Parameters:
p
- the calling expression parser- Returns:
- the expression
- Throws:
XPathException
- in the event of a syntax error
-
parseRenameExpression
Parse a "rename" expression. Syntax: rename_node TargetExpr as ExprSingle- Parameters:
p
- the calling expression parser- Returns:
- the expression
- Throws:
XPathException
- in the event of a syntax error
-