public abstract class AxisIteratorImpl extends Object implements AxisIterator, AtomizableIterator
Modifier and Type | Field and Description |
---|---|
protected Item |
current |
protected int |
position |
ATOMIZABLE, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor and Description |
---|
AxisIteratorImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnother, next
protected int position
protected Item current
public final Item current()
current
in interface AxisIterator
current
in interface SequenceIterator
public final int position()
position
in interface AxisIterator
position
in interface SequenceIterator
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.