public class AttributeListIterator extends NodeIterator
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.NamedNodeMap |
_attributeMap |
protected int |
_index |
protected AbstractPattern |
_match |
protected org.w3c.dom.Node |
_node |
protected NodeIterator |
_parentIter |
_contextNode, _env, _position, _size, log
Modifier | Constructor and Description |
---|---|
protected |
AttributeListIterator(ExprEnvironment env) |
|
AttributeListIterator(NodeIterator parentIter,
ExprEnvironment env,
AbstractPattern match)
Creates the new AxisIterator.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
clones the iterator
|
int |
getContextSize()
Returns the number of nodes in the context list.
|
boolean |
hasNext()
True if there's more data.
|
org.w3c.dom.Node |
nextNode()
Returns the next selected node.
|
java.lang.String |
toString() |
copy, getContextNode, getContextPosition, getCurrentNode, getFunction, getOwnerDocument, getPositionIndex, getStylesheetEnv, getVar, next, nextSelectedNode, remove, setContextNode, setMorePositions, stringValue, systemProperty
protected NodeIterator _parentIter
protected org.w3c.dom.NamedNodeMap _attributeMap
protected org.w3c.dom.Node _node
protected int _index
protected AbstractPattern _match
protected AttributeListIterator(ExprEnvironment env)
public AttributeListIterator(NodeIterator parentIter, ExprEnvironment env, AbstractPattern match) throws XPathException
parentIter
- the parent iteratorenv
- the variable environmentmatch
- the node matching patternXPathException
public boolean hasNext()
hasNext
in interface java.util.Iterator<org.w3c.dom.Node>
hasNext
in class NodeIterator
public org.w3c.dom.Node nextNode() throws XPathException
nextNode
in class NodeIterator
XPathException
public int getContextSize()
getContextSize
in interface ExprEnvironment
getContextSize
in class NodeIterator
public java.lang.Object clone()
NodeIterator
clone
in class NodeIterator
public java.lang.String toString()
toString
in class java.lang.Object