XPathExpression
public 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()
XPathExpression
XPathExpression
object.toString
in interface XPathExpression
toString
in class java.lang.Object
public short getExprType()
XPathExpression
getExprType
in interface XPathExpression
public XPathResult evaluate(XPathContext context) throws XPathException
evaluate
in interface XPathExpression
context
- The XPathContext to use during evaluation.XPathException
- if an error occured while
evaluating this expression.public UnionExpr getUnionExpr()