class NodeValueCharIterator extends Object implements CharIterator
CharIterator that iterates the characters of the
value(s) of a single node or a node-list.| Modifier and Type | Field and Description |
|---|---|
private int |
nodeIndex
|
private NodeList |
nodeList |
private String |
value
The current
node-value. |
private int |
valueIndex
|
private int |
valueLength
|
END_OF_ITERATOR| Constructor and Description |
|---|
NodeValueCharIterator(Node singleNode)
The constructor.
|
NodeValueCharIterator(NodeList nodeList)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
This method determines whether there is a
next char available or the end of this iterator
has been reached. |
char |
next()
This method returns the next character to iterate or
CharIterator.END_OF_ITERATOR if the end of this iterator
has been reached. |
private final NodeList nodeList
NodeValueCharIterator(NodeList)private int nodeIndex
private String value
node-value.private int valueLength
private int valueIndex
public NodeValueCharIterator(NodeList nodeList)
public boolean hasNext()
next char available or the end of this iterator
has been reached.hasNext in interface CharIteratortrue if there is at least one next char available, or
false if the end of this iterator has been reached and further calls of
CharIterator.next() will return CharIterator.END_OF_ITERATOR.CharIterator.next(),
Iterator.hasNext()public char next()
CharIterator.END_OF_ITERATOR if the end of this iterator
has been reached. If CharIterator.END_OF_ITERATOR is returned further calls will always return
CharIterator.END_OF_ITERATOR.next in interface CharIteratorCharIterator.END_OF_ITERATOR if the end of this iterator has been reached.Iterator.next()Copyright © 2001–2015 mmm-Team. All rights reserved.