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
private int nodeIndex
private String value
node-value
.private int valueLength
private int valueIndex
public NodeValueCharIterator(NodeList nodeList)
public boolean hasNext()
CharIterator
next
char available or the end of this iterator has been
reached.hasNext
in interface CharIterator
true
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
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 CharIterator
CharIterator.END_OF_ITERATOR
if the end of this iterator has been reached.Iterator.next()
Copyright © 2001–2016 mmm-Team. All rights reserved.