|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.xpath.pattern.NodeIterator
com.caucho.xpath.pattern.SingleNodeIterator
public class SingleNodeIterator
Iterates through matching nodes.
| Field Summary | |
|---|---|
protected org.w3c.dom.Node |
_node
|
| Fields inherited from class com.caucho.xpath.pattern.NodeIterator |
|---|
_contextNode, _env, _position, _size, log |
| Constructor Summary | |
|---|---|
SingleNodeIterator(ExprEnvironment env,
org.w3c.dom.Node node)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
clones the iterator |
int |
getLength()
Returns the NodeList length. |
int |
getPosition()
Returns the current position. |
boolean |
hasNext()
True if there's more data. |
org.w3c.dom.Node |
item(int i)
Returns the NodeList item. |
org.w3c.dom.Node |
nextNode()
Returns the next node. |
| Methods inherited from class com.caucho.xpath.pattern.NodeIterator |
|---|
copy, getContextNode, getContextPosition, getContextSize, getCurrentNode, getFunction, getOwnerDocument, getPositionIndex, getStylesheetEnv, getVar, next, nextSelectedNode, remove, setContextNode, setMorePositions, stringValue, systemProperty |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.w3c.dom.Node _node
| Constructor Detail |
|---|
public SingleNodeIterator(ExprEnvironment env,
org.w3c.dom.Node node)
| Method Detail |
|---|
public int getPosition()
public boolean hasNext()
hasNext in interface java.util.Iterator<org.w3c.dom.Node>hasNext in class NodeIteratorpublic org.w3c.dom.Node nextNode()
nextNode in class NodeIteratorpublic int getLength()
getLength in interface org.w3c.dom.NodeListpublic org.w3c.dom.Node item(int i)
item in interface org.w3c.dom.NodeListpublic java.lang.Object clone()
clone in class NodeIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||