public abstract class UnionExpr extends java.lang.Object implements XPathExpression, MatchExpression
UnionExpr ::= PathExpr | (PathExpr '|' UnionExpr)
BOOLEAN, ERROR, FILTER_EXPR, LOCATION_PATH, NODE_TEST, NUMBER, PATH_EXPR, PRIMARY, STEP, STRING, UNION_EXPR
Constructor and Description |
---|
UnionExpr() |
Modifier and Type | Method and Description |
---|---|
short |
getExprType()
Returns the type of Expr this Expr represents
|
PathExpr |
getMatchingExpr(XPathNode node,
XPathContext context)
Retrieves the PathExpr that matches the given node.
|
abstract PathExpr |
getPathExpr()
Returns the PathExpr of this UnionExpr.
|
abstract UnionExpr |
getUnionExpr()
Returns the UnionExpr that this UnionExpr is in union
with.
|
abstract boolean |
matches(XPathNode node,
XPathContext context)
Determines if the given node is matched by this MatchExpr with
respect to the given context.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluate, toString
public abstract PathExpr getPathExpr()
UnionExpr ::= PathExpr | (PathExpr '|' UnionExpr)
public abstract UnionExpr getUnionExpr()
UnionExpr ::= PathExpr | (PathExpr '|' UnionExpr)
getPathExpr()
public final short getExprType()
getExprType
in interface XPathExpression
public PathExpr getMatchingExpr(XPathNode node, XPathContext context) throws XPathException
node
- the node to test for matchingXPathException
public abstract boolean matches(XPathNode node, XPathContext context) throws XPathException
matches
in interface MatchExpression
node
- the node to determine a match forcontext
- the XPathContextXPathException
- when an error occurs during
evaluation