net.sf.saxon.dotnet

Class DotNetTokenIterator

Implemented Interfaces:
SequenceIterator

public class DotNetTokenIterator
extends java.lang.Object
implements SequenceIterator

A DotNetTokenIterator is an iterator over the strings that result from tokenizing a string using a regular expression

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

GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD

Constructor Summary

DotNetTokenIterator(CharSequence input, Regex pattern)
Construct a JTokenIterator.

Method Summary

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

Constructor Details

DotNetTokenIterator

public DotNetTokenIterator(CharSequence input,
                           Regex pattern)
Construct a JTokenIterator.

Method Details

current

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

getAnother

public SequenceIterator getAnother()
Specified by:
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 GROUNDED, LAST_POSITION_FINDER, and LOOKAHEAD. It is always acceptable to return the value zero, indicating that there are no known special properties. It is acceptable for the properties of the iterator to change depending on its state.

next

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

position

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