public class FromDescendants extends AbstractPattern
_child, _parent, log, XMLNS| Constructor and Description |
|---|
FromDescendants(AbstractPattern parent,
boolean self) |
| Modifier and Type | Method and Description |
|---|---|
AbstractPattern |
copyAxis()
Returns the node itself for the axis.
|
AbstractPattern |
copyPosition()
Returns null since the axis isn't part of the position pattern.
|
int |
count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Counts the descendant nodes matching the pattern.
|
NodeIterator |
createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates a new node iterator.
|
org.w3c.dom.Node |
firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
boolean |
isStrictlyAscending()
Returns true if the pattern is strictly ascending.
|
boolean |
isUnique()
Returns true if the pattern's selector returns unique nodes.
|
org.w3c.dom.Node |
lastNode(org.w3c.dom.Node node)
Returns the last node in the selection order.
|
boolean |
match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches the current node if it can find a parent node matching the
parent pattern.
|
org.w3c.dom.Node |
nextNode(org.w3c.dom.Node node,
org.w3c.dom.Node lastNode)
Returns the next node in the selection order.
|
int |
position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Counts matching nodes between the axis-context and the node
|
java.lang.String |
toString() |
findAny, getNodeName, getParent, getPrefix, getPriority, isAscending, select, selectUnique, toPatternStringpublic FromDescendants(AbstractPattern parent, boolean self)
public boolean match(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
match in class AbstractPatternnode - the node to testenv - the variable environmentXPathExceptionpublic int position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
throws XPathException
node - the starting nodeenv - the xpath environmentpattern - the axis match patternXPathExceptionpublic int count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
throws XPathException
node - the starting nodeenv - the xpath environmentpattern - the axis match patternXPathExceptionpublic boolean isStrictlyAscending()
public org.w3c.dom.Node firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
firstNode in class AbstractPatternnode - the current nodepublic org.w3c.dom.Node nextNode(org.w3c.dom.Node node,
org.w3c.dom.Node lastNode)
nextNode in class AbstractPatternnode - the current nodendoe - the last nodepublic org.w3c.dom.Node lastNode(org.w3c.dom.Node node)
lastNode in class AbstractPatternnode - the current nodepublic java.lang.String toString()
toString in class java.lang.Objectpublic NodeIterator createNodeIterator(org.w3c.dom.Node node, ExprEnvironment env, AbstractPattern match) throws XPathException
createNodeIterator in class AbstractPatternnode - the starting nodeenv - the variable environmentmatch - the axis match patternXPathExceptionpublic AbstractPattern copyAxis()
copyAxis in class AbstractPatternpublic AbstractPattern copyPosition()
copyPosition in class AbstractPatternpublic boolean isUnique()
isUnique in class AbstractPattern