net.sf.saxon.functions
public static class IndexOf.IndexIterator extends Object implements SequenceIterator
Field Summary | |
---|---|
SequenceIterator | base |
GenericAtomicComparer | comparer |
Item | current |
int | index |
int | position |
BuiltInAtomicType | primitiveTypeRequired |
TypeHierarchy | typeHierarchy |
AtomicValue | value |
Constructor Summary | |
---|---|
IndexIterator(SequenceIterator base, AtomicValue value, GenericAtomicComparer comparer)
Get an iterator returning the index positions of selected items in a sequence |
Method Summary | |
---|---|
void | close() |
Item | current() |
SequenceIterator | getAnother() |
int | getProperties()
Get properties of this iterator, as a bit-significant integer.
|
Item | next() |
int | position() |
Parameters: base The sequence to be searched value The value being sought comparer Comparer used to determine whether values match
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.