Iterator over a NodeList.
This iterator does not support remove() as a NodeList does not support
removal of items.
NodeList
| Modifier and Type | Field and Description |
|---|---|
| private int | index
The current iterator index |
| private final NodeList | nodeList
the original NodeList instance |
| Access | Constructor and Description |
|---|---|
| public | NodeListIterator(final Node
Node, who's child nodes are wrapped by this class. Must not be null node)Convenience constructor, which creates a new NodeListIterator from the specified node's childNodes. |
| public | NodeListIterator(final NodeList
node list, which is wrapped by this class. Must not be null nodeList)Constructor, that creates a new NodeListIterator from the specified
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Node | |
| public void |
| index | back to summary |
|---|---|
| private int index The current iterator index | |
| nodeList | back to summary |
|---|---|
| private final NodeList nodeList the original NodeList instance | |
| NodeListIterator | back to summary |
|---|---|
| public NodeListIterator(final Node node) Convenience constructor, which creates a new NodeListIterator from the specified node's childNodes.
| |
| NodeListIterator | back to summary |
|---|---|
| public NodeListIterator(final NodeList nodeList) Constructor, that creates a new NodeListIterator from the specified
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Node next() Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Throws
| |