public class FromAttributes extends AbstractPattern
_child, _parent, log, XMLNS| Constructor and Description |
|---|
FromAttributes(AbstractPattern parent) |
| 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 all siblings matching the pattern.
|
NodeIterator |
createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates a new node iterator.
|
boolean |
equals(java.lang.Object b)
Returns true if the two patterns are equal.
|
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.
|
boolean |
match(org.w3c.dom.Node node,
ExprEnvironment env)
matches if the node is an attribute.
|
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)
The position of the child is the count of previous siblings
matching the pattern.
|
java.lang.String |
toString() |
findAny, getNodeName, getParent, getPrefix, getPriority, isAscending, lastNode, select, selectUnique, toPatternStringpublic FromAttributes(AbstractPattern parent)
public boolean match(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
match in class AbstractPatternnode - the current nodeenv - the variable environmentXPathExceptionpublic int position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
throws XPathException
node - the current nodeenv - the variable environmentpattern - the position patternXPathExceptionpublic int count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
throws XPathException
node - the current nodeenv - the variable environmentpattern - the position patternXPathExceptionpublic NodeIterator createNodeIterator(org.w3c.dom.Node node, ExprEnvironment env, AbstractPattern match) throws XPathException
node - the starting nodeenv - the variable environmentmatch - the axis match patternXPathExceptionpublic 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 nodelastNode - the last nodepublic boolean isStrictlyAscending()
public boolean equals(java.lang.Object b)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic AbstractPattern copyAxis()
copyAxis in class AbstractPatternpublic AbstractPattern copyPosition()
copyPosition in class AbstractPatternpublic boolean isUnique()
isUnique in class AbstractPattern