Package com.saxonica.ee.update
Class UpdateParser
- java.lang.Object
- 
- com.saxonica.ee.update.UpdateParser
 
- 
 public class UpdateParser extends java.lang.ObjectParser utility methods for the XQuery Update extensions
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static ExpressionparseDeleteExpression(XPathParser p)Parse a delete expression.static ExpressionparseInsertExpression(XPathParser p)Parse the insert expression Syntax: insert_node Expr choice Expr choice: "as first into" | "as last into" | "into" | "after" | "before"static ExpressionparseRenameExpression(XPathParser p)Parse a "rename" expression.static ExpressionparseReplaceNodeExpression(XPathParser p)Parse a "replace node" expression.static ExpressionparseReplaceValueExpression(XPathParser p)Parse a "replace value" expression.static ExpressionparseTransformExpression(XPathParser p)Parse the "transform" (that is, copy/modify/return) expression Syntax: "copy" "$" VarName ":=" ExprSingle ("," "$" VarName ":=" ExprSingle)* "modify" ExprSingle "return" ExprSingle
 
- 
- 
- 
Method Detail- 
parseTransformExpressionpublic static Expression parseTransformExpression(XPathParser p) throws XPathException 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
 
 - 
parseInsertExpressionpublic static Expression parseInsertExpression(XPathParser p) throws XPathException 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
 
 - 
parseDeleteExpressionpublic static Expression parseDeleteExpression(XPathParser p) throws XPathException 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
 
 - 
parseReplaceNodeExpressionpublic static Expression parseReplaceNodeExpression(XPathParser p) throws XPathException 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
 
 - 
parseReplaceValueExpressionpublic static Expression parseReplaceValueExpression(XPathParser p) throws XPathException 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
 
 - 
parseRenameExpressionpublic static Expression parseRenameExpression(XPathParser p) throws XPathException 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
 
 
- 
 
-