net.sf.saxon.instruct
Class BlockIterator
java.lang.Object
net.sf.saxon.instruct.BlockIterator
- SequenceIterator
public class BlockIterator
extends java.lang.Object
Iterate over the instructions in the Block, concatenating the result of each instruction
into a single combined sequence.
Item | current() - Get the current value in the sequence (the one returned by the
most recent call on next()).
|
SequenceIterator | getAnother() - Get another SequenceIterator that iterates over the same items as the original,
but which is repositioned at the start of the sequence.
|
int | getProperties() - Get properties of this iterator, as a bit-significant integer.
|
Item | next() - Get the next item in the sequence.
|
int | position() - Get the current position.
|
current
public Item current()
Get the current value in the sequence (the one returned by the
most recent call on next()). This will be null before the first
call of next().
- current in interface SequenceIterator
- the current item, the one most recently returned by a call on
next(); or null, if next() has not been called, or if the end
of the sequence has been reached.
getAnother
public SequenceIterator getAnother()
throws XPathException
Get another SequenceIterator that iterates over the same items as the original,
but which is repositioned at the start of the sequence.
- getAnother in interface SequenceIterator
- a SequenceIterator that iterates over the same items,
positioned before the first item
getProperties
public int getProperties()
Get properties of this iterator, as a bit-significant integer.
- getProperties in interface SequenceIterator
position
public int position()
Get the current position. This will be zero before the first call
on next(), otherwise it will be the number of times that next() has
been called.
- position in interface SequenceIterator
- the current position, the position of the item returned by the
most recent call of next()