Package net.sf.saxon.value
Class StringValue.CharacterIterator
- java.lang.Object
-
- net.sf.saxon.value.StringValue.CharacterIterator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,SequenceIterator<Int64Value>,UnfailingIterator<Int64Value>
- Enclosing class:
- StringValue
public static final class StringValue.CharacterIterator extends Object implements UnfailingIterator<Int64Value>
CharacterIterator is used to iterate over the characters in a string, returning them as integers representing the Unicode code-point.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intinpos-
Fields inherited from interface net.sf.saxon.om.SequenceIterator
ATOMIZING, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
-
-
Constructor Summary
Constructors Constructor Description CharacterIterator(CharSequence value)Create an iterator over a string
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Int64Valuenext()Get the next item in the sequence.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.om.SequenceIterator
close, forEachOrFail, getProperties, materialize
-
Methods inherited from interface net.sf.saxon.tree.iter.UnfailingIterator
firstWith, forEach, toGroundedValue, toList
-
-
-
-
Constructor Detail
-
CharacterIterator
public CharacterIterator(CharSequence value)
Create an iterator over a string
-
-
Method Detail
-
next
public Int64Value next()
Description copied from interface:UnfailingIteratorGet the next item in the sequence.- Specified by:
nextin interfaceSequenceIterator<Int64Value>- Specified by:
nextin interfaceUnfailingIterator<Int64Value>- Returns:
- the next Item. If there are no more items, return null.
-
-