net.sf.saxon.functions

Class IndexOf.IndexIterator

public static class IndexOf.IndexIterator extends Object implements SequenceIterator

Iterator to return the index positions of selected items in a sequence
Field Summary
SequenceIteratorbase
GenericAtomicComparercomparer
Itemcurrent
intindex
intposition
BuiltInAtomicTypeprimitiveTypeRequired
TypeHierarchytypeHierarchy
AtomicValuevalue
Constructor Summary
IndexIterator(SequenceIterator base, AtomicValue value, GenericAtomicComparer comparer)
Get an iterator returning the index positions of selected items in a sequence
Method Summary
voidclose()
Itemcurrent()
SequenceIteratorgetAnother()
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
Itemnext()
intposition()

Field Detail

base

SequenceIterator base

comparer

GenericAtomicComparer comparer

current

Item current

index

int index

position

int position

primitiveTypeRequired

BuiltInAtomicType primitiveTypeRequired

typeHierarchy

TypeHierarchy typeHierarchy

value

AtomicValue value

Constructor Detail

IndexIterator

public IndexIterator(SequenceIterator base, AtomicValue value, GenericAtomicComparer comparer)
Get an iterator returning the index positions of selected items in a sequence

Parameters: base The sequence to be searched value The value being sought comparer Comparer used to determine whether values match

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