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, toPatternString
public UnionPattern(AbstractPattern left, AbstractPattern right)
public boolean match(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
match
in class AbstractPattern
node
- the node to testenv
- the variable environmentXPathException
public boolean isStrictlyAscending()
isStrictlyAscending
in class AbstractPattern
public NodeIterator createNodeIterator(org.w3c.dom.Node node, ExprEnvironment env, AbstractPattern match) throws XPathException
createNodeIterator
in class AbstractPattern
node
- the starting nodeenv
- the xpath environmentmatch
- the axis match patternXPathException
public int position(org.w3c.dom.Node node, Env env, AbstractPattern pattern) throws XPathException
AbstractPattern
position
in class AbstractPattern
node
- the current nodeenv
- the variable environmentpattern
- the position patternXPathException
public int count(org.w3c.dom.Node node, Env env, AbstractPattern pattern) throws XPathException
AbstractPattern
count
in class AbstractPattern
node
- the current nodeenv
- the variable environmentpattern
- the position patternXPathException
public AbstractPattern getLeft()
public AbstractPattern getRight()
public java.lang.String toString()
toString
in class java.lang.Object