public class UnionPattern extends AbstractPattern
_child, _parent, log, XMLNS| Constructor and Description |
|---|
UnionPattern(AbstractPattern left,
AbstractPattern right) |
| Modifier and Type | Method and Description |
|---|---|
int |
count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Returns the number of nodes in its context for a match pattern.
|
NodeIterator |
createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates a new node iterator.
|
AbstractPattern |
getLeft()
Return left node of the union.
|
AbstractPattern |
getRight()
Return right node of the union.
|
boolean |
isStrictlyAscending()
Returns true if the nodes are ascending.
|
boolean |
match(org.w3c.dom.Node node,
ExprEnvironment env)
Match if either pattern matches.
|
int |
position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Returns the position of the node in its context for a match pattern.
|
java.lang.String |
toString() |
copyAxis, copyPosition, findAny, firstNode, getNodeName, getParent, getPrefix, getPriority, isAscending, isUnique, lastNode, nextNode, select, selectUnique, toPatternStringpublic UnionPattern(AbstractPattern left, AbstractPattern right)
public boolean match(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
match in class AbstractPatternnode - the node to testenv - the variable environmentXPathExceptionpublic boolean isStrictlyAscending()
isStrictlyAscending in class AbstractPatternpublic NodeIterator createNodeIterator(org.w3c.dom.Node node, ExprEnvironment env, AbstractPattern match) throws XPathException
createNodeIterator in class AbstractPatternnode - the starting nodeenv - the xpath environmentmatch - the axis match patternXPathExceptionpublic int position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
throws XPathException
AbstractPatternposition in class AbstractPatternnode - the current nodeenv - the variable environmentpattern - the position patternXPathExceptionpublic int count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
throws XPathException
AbstractPatterncount in class AbstractPatternnode - the current nodeenv - the variable environmentpattern - the position patternXPathExceptionpublic AbstractPattern getLeft()
public AbstractPattern getRight()
public java.lang.String toString()
toString in class java.lang.Object