public class CurrentPattern extends AbstractPattern
_child, _parent, log, XMLNS
Constructor and Description |
---|
CurrentPattern() |
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 nodes within the axis matching the pattern.
|
int |
count(org.w3c.dom.Node node,
Env env,
org.w3c.dom.Node context)
There is only a single node in the current
|
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.
|
boolean |
match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches the current node
|
org.w3c.dom.Node |
nextNode(org.w3c.dom.Node node,
org.w3c.dom.Node last)
Returns the next node in the selection order.
|
int |
position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
There is only a single node in the current
|
java.lang.String |
toString() |
findAny, getNodeName, getParent, getPrefix, getPriority, isAscending, lastNode, select, selectUnique, toPatternString
public boolean match(org.w3c.dom.Node node, ExprEnvironment env)
match
in class AbstractPattern
node
- the starting nodeenv
- the xpath environmentpublic NodeIterator createNodeIterator(org.w3c.dom.Node node, ExprEnvironment env, AbstractPattern match) throws XPathException
node
- the starting nodeenv
- the xpath environmentmatch
- the axis match patternXPathException
public org.w3c.dom.Node firstNode(org.w3c.dom.Node node, ExprEnvironment env)
firstNode
in class AbstractPattern
node
- the current nodepublic org.w3c.dom.Node nextNode(org.w3c.dom.Node node, org.w3c.dom.Node last)
nextNode
in class AbstractPattern
node
- the current nodelast
- the last nodepublic int position(org.w3c.dom.Node node, Env env, AbstractPattern pattern)
node
- the current nodeenv
- the variable environmentpattern
- the position patternpublic int count(org.w3c.dom.Node node, Env env, org.w3c.dom.Node context)
public java.lang.String toString()
toString
in class java.lang.Object
public int count(org.w3c.dom.Node node, Env env, AbstractPattern pattern) throws XPathException
count
in class AbstractPattern
node
- the current nodeenv
- the variable environmentpattern
- the position patternXPathException
public AbstractPattern copyAxis()
copyAxis
in class AbstractPattern
public AbstractPattern copyPosition()
copyPosition
in class AbstractPattern
public boolean isStrictlyAscending()
isStrictlyAscending
in class AbstractPattern
public boolean isUnique()
isUnique
in class AbstractPattern