XPathExpressionpublic final class SelectExpr extends java.lang.Object implements XPathExpression
[1] SelectExpr ::= UnionExpr
BOOLEAN, ERROR, FILTER_EXPR, LOCATION_PATH, NODE_TEST, NUMBER, PATH_EXPR, PRIMARY, STEP, STRING, UNION_EXPR| Constructor | Description |
|---|---|
SelectExpr() |
Creates a new SelectExpr.
|
| Modifier and Type | Method | Description |
|---|---|---|
XPathResult |
evaluate(XPathContext context) |
Evaluates the expression and returns the XPath result.
|
short |
getExprType() |
Returns the type of this expression.
|
UnionExpr |
getUnionExpr() |
|
java.lang.String |
toString() |
Returns the XPath expression as a string.
|
public SelectExpr()
public java.lang.String toString()
XPathExpressionXPathExpression object.toString in interface XPathExpressiontoString in class java.lang.Objectpublic short getExprType()
XPathExpressiongetExprType in interface XPathExpressionpublic XPathResult evaluate(XPathContext context) throws XPathException
evaluate in interface XPathExpressioncontext - The XPathContext to use during evaluation.XPathException - if an error occured while
evaluating this expression.public UnionExpr getUnionExpr()