net.sf.saxon.expr

Class AppendIterator

public class AppendIterator extends Object implements SequenceIterator

Iterator that concatenates the results of two supplied iterators
Constructor Summary
AppendIterator(SequenceIterator first, SequenceIterable second, XPathContext context)
This form of constructor is designed to delay getting an iterator for the second expression until it is actually needed.
Method Summary
voidclose()
Itemcurrent()
SequenceIteratorgetAnother()
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
Itemnext()
intposition()

Constructor Detail

AppendIterator

public AppendIterator(SequenceIterator first, SequenceIterable second, XPathContext context)
This form of constructor is designed to delay getting an iterator for the second expression until it is actually needed. This gives savings in cases where the iteration is aborted prematurely.

Parameters: first Iterator over the first operand second The second operand context The dynamic context for evaluation of the second operand

Method Detail

close

public void close()

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