org.exolab.adaptx.xpath.expressions
public abstract class UnionExpr extends Object implements XPathExpression, MatchExpression
UnionExpr ::= PathExpr | (PathExpr '|' UnionExpr)
Version: $Revision: 3734 $ $Date: 2003-05-13 03:55:04 -0400 (Tue, 13 May 2003) $
Method Summary | |
---|---|
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.
|
Returns: the type of Expr this Expr represents
Parameters: node the node to test for matching
Returns: the matching PathExpr or null if none match
UnionExpr ::= PathExpr | (PathExpr '|' UnionExpr)
Returns: the PathExpr of this UnionExpr.
UnionExpr ::= PathExpr | (PathExpr '|' UnionExpr)
Returns: the UnionExpr that this UnionExpr is in union with, or null if this is UnionExpr only contains a PathExpr.
See Also: UnionExpr
Parameters: node the node to determine a match for context the XPathContext
Returns: true if the given node is matched by this MatchExpr
Throws: XPathException when an error occurs during evaluation