| java.lang.Object net.sf.saxon.om.AxisIteratorImpl
All known Subclasses: net.sf.saxon.tinytree.AncestorEnumeration, net.sf.saxon.tinytree.FollowingEnumeration, net.sf.saxon.tinytree.AttributeEnumeration, net.sf.saxon.tinytree.PrecedingSiblingEnumeration, net.sf.saxon.tinytree.SiblingEnumeration, net.sf.saxon.tinytree.PrecedingEnumeration, net.sf.saxon.tinytree.DescendantEnumeration, net.sf.saxon.tree.AttributeEnumeration,
AxisIteratorImpl | abstract public class AxisIteratorImpl implements AxisIterator,AtomizableIterator(Code) | | 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.
|
Method Summary | |
final public Item | current() Get the current node in the sequence. | public int | getProperties() Get properties of this iterator, as a bit-significant integer.
the properties of this iterator. | final 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. | final public int | position() | public void | setIsAtomizing(boolean atomizing) Indicate that any nodes returned in the sequence will be atomized. |
position | protected int position(Code) | | |
current | final public Item current()(Code) | | Get the current node in the sequence.
the node returned by the most recent call on next() |
getProperties | public int getProperties()(Code) | | Get properties of this iterator, as a bit-significant integer.
the properties of this iterator. This will be some combination ofproperties such as GROUNDED, LAST_POSITION_FINDER,and LOOKAHEAD. It is alwaysacceptable 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. |
isAtomizing | final protected boolean isAtomizing()(Code) | | Determine whether any nodes returned by this iterator will be atomized,
in which case the supplier has the option of atomizing them eagerly.
|
position | final public int position()(Code) | | Get the current position
the position of the most recent node returned by next() |
setIsAtomizing | public void setIsAtomizing(boolean atomizing)(Code) | | Indicate that any nodes returned in the sequence will be atomized. This
means that if it wishes to do so, the implementation can return the typed
values of the nodes rather than the nodes themselves. The implementation
is free to ignore this hint.
Parameters: atomizing - true if the caller of this iterator will atomize anynodes that are returned, and is therefore willing to accept the typedvalue of the nodes instead of the nodes themselves. |
|
|