|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.om.AxisIteratorImpl
A SequenceIterator is used to iterate over a sequence. An AxisIterator is a SequenceIterator that always iterates over a set of nodes, and that throws no exceptions; it also supports the ability to find the last() position, again with no exceptions. This class is an abstract implementation of AxisIterator that is used as a base class for many concrete implementations. The main functionality that it provides is maintaining the current position.
Field Summary | |
protected Item |
current
|
protected int |
position
|
Fields inherited from interface net.sf.saxon.om.SequenceIterator |
ATOMIZABLE, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD |
Constructor Summary | |
AxisIteratorImpl()
|
Method Summary | |
Item |
current()
Get the current node in the sequence. |
int |
getProperties()
Get properties of this iterator, as a bit-significant integer. |
protected boolean |
isAtomizing()
Determine whether any nodes returned by this iterator will be atomized, in which case the supplier has the option of atomizing them eagerly. |
int |
position()
Get the current position |
void |
setIsAtomizing(boolean atomizing)
Indicate that any nodes returned in the sequence will be atomized. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.saxon.om.AxisIterator |
getAnother, next |
Field Detail |
protected int position
protected Item current
Constructor Detail |
public AxisIteratorImpl()
Method Detail |
public final Item current()
current
in interface AxisIterator
public final int position()
position
in interface AxisIterator
public void setIsAtomizing(boolean atomizing)
setIsAtomizing
in interface AtomizableIterator
atomizing
- true if the caller of this iterator will atomize any
nodes that are returned, and is therefore willing to accept the typed
value of the nodes instead of the nodes themselves.protected final boolean isAtomizing()
public int getProperties()
getProperties
in interface SequenceIterator
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |