public class UpdateParser extends Object
Modifier and Type | Method and Description |
---|---|
static Expression |
parseDeleteExpression(ExpressionParser p)
Parse a delete expression.
|
static Expression |
parseInsertExpression(ExpressionParser p)
Parse the insert expression
Syntax: insert_node Expr choice Expr
choice: "as first into" | "as last into" | "into" | "after" | "before"
|
static Expression |
parseRenameExpression(ExpressionParser p)
Parse a "rename" expression.
|
static Expression |
parseReplaceNodeExpression(ExpressionParser p)
Parse a "replace node" expression.
|
static Expression |
parseReplaceValueExpression(ExpressionParser p)
Parse a "replace value" expression.
|
static Expression |
parseTransformExpression(ExpressionParser p)
Parse the "transform" (that is, copy/modify/return) expression
Syntax: "copy" "$" VarName ":=" ExprSingle ("," "$" VarName ":=" ExprSingle)*
"modify" ExprSingle "return" ExprSingle
|
public static Expression parseTransformExpression(ExpressionParser p) throws XPathException
p
- the calling expression parserXPathException
- in the event of a syntax errorpublic static Expression parseInsertExpression(ExpressionParser p) throws XPathException
p
- the calling expression parserXPathException
- in the event of a syntax errorpublic static Expression parseDeleteExpression(ExpressionParser p) throws XPathException
p
- the calling expression parserXPathException
- in the event of a syntax errorpublic static Expression parseReplaceNodeExpression(ExpressionParser p) throws XPathException
p
- the calling expression parserXPathException
- in the event of a syntax errorpublic static Expression parseReplaceValueExpression(ExpressionParser p) throws XPathException
p
- the calling expression parserXPathException
- in the event of a syntax errorpublic static Expression parseRenameExpression(ExpressionParser p) throws XPathException
p
- the calling expression parserXPathException
- in the event of a syntax errorCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.