net.sf.saxon.value

Class StringValue.CharacterIterator

Enclosing Class:
StringValue
Implemented Interfaces:
SequenceIterator, UnfailingIterator

public final class StringValue.CharacterIterator
extends java.lang.Object
implements UnfailingIterator

CharacterIterator is used to iterate over the characters in a string, returning them as integers representing the Unicode code-point.

Fields inherited from interface net.sf.saxon.om.SequenceIterator

GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD

Constructor Summary

CharacterIterator()
Create an iterator over a string

Method Summary

Item
current()
SequenceIterator
getAnother()
int
getProperties()
Get properties of this iterator, as a bit-significant integer.
Item
next()
int
position()

Constructor Details

CharacterIterator

public CharacterIterator()
Create an iterator over a string

Method Details

current

public Item current()
Specified by:
current in interface UnfailingIterator
current in interface SequenceIterator

getAnother

public SequenceIterator getAnother()
Specified by:
getAnother in interface UnfailingIterator
getAnother in interface SequenceIterator

getProperties

public int getProperties()
Get properties of this iterator, as a bit-significant integer.
Specified by:
getProperties in interface SequenceIterator
Returns:
the properties of this iterator. This will be some combination of properties such as SequenceIterator.GROUNDED and SequenceIterator.LAST_POSITION_FINDER. It is always acceptable to return the value zero, indicating that there are no known special properties.

next

public Item next()
Specified by:
next in interface UnfailingIterator
next in interface SequenceIterator

position

public int position()
Specified by:
position in interface UnfailingIterator
position in interface SequenceIterator