net.sf.saxon.regex

Class JTokenIterator

public class JTokenIterator extends Object implements SequenceIterator

A JTokenIterator is an iterator over the strings that result from tokenizing a string using a regular expression
Constructor Summary
JTokenIterator(CharSequence input, Pattern pattern)
Construct a JTokenIterator.
Method Summary
Itemcurrent()
SequenceIteratorgetAnother()
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
Itemnext()
intposition()

Constructor Detail

JTokenIterator

public JTokenIterator(CharSequence input, Pattern pattern)
Construct a JTokenIterator.

Method Detail

current

public Item current()

getAnother

public SequenceIterator getAnother()

getProperties

public int getProperties()
Get properties of this iterator, as a bit-significant integer.

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()

position

public int position()