net.sf.saxon.functions

Class Remove.RemoveIterator

public static class Remove.RemoveIterator extends Object implements SequenceIterator, LastPositionFinder

An implementation of SequenceIterator that returns all items except the one at a specified position.
Field Summary
SequenceIteratorbase
Itemcurrent
intposition
intremovePosition
Constructor Summary
RemoveIterator(SequenceIterator base, int removePosition)
Method Summary
voidclose()
Itemcurrent()
SequenceIteratorgetAnother()
intgetLastPosition()
Get the last position (that is, the number of items in the sequence).
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
Itemnext()
intposition()

Field Detail

base

SequenceIterator base

current

Item current

position

int position

removePosition

int removePosition

Constructor Detail

RemoveIterator

public RemoveIterator(SequenceIterator base, int removePosition)

Method Detail

close

public void close()

current

public Item current()

getAnother

public SequenceIterator getAnother()

getLastPosition

public int getLastPosition()
Get the last position (that is, the number of items in the sequence). This method is non-destructive: it does not change the state of the iterator. The result is undefined if the next() method of the iterator has already returned null.

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