Class: com.sun.org.apache.xalan.internal.xsltc.dom.AbsoluteIterator
- public final class AbsoluteIterator
- extends DTMAxisIteratorBase
Absolute iterators ignore the node that is passed to setStartNode().
Instead, they always start from the root node. The node passed to
setStartNode() is not totally useless, though. It is needed to obtain the
DOM mask, i.e. the index into the MultiDOM table that corresponds to the
DOM "owning" the node.
The DOM mask is cached, so successive calls to setStartNode() passing
nodes from other DOMs will have no effect (i.e. this iterator cannot
migrate between DOMs).
Inheritance
Superclass tree:- java.lang.Object
- com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase
- com.sun.org.apache.xalan.internal.xsltc.dom.AbsoluteIterator
Methods
-
AbsoluteIteratortop
public AbsoluteIterator(DTMAxisIterator source) -
cloneIteratortop
public DTMAxisIterator cloneIterator()- Specified by:
- cloneIterator from DTMAxisIterator
- Override hierarchy:
- cloneIterator from DTMAxisIteratorBase
-
gotoMarktop
public void gotoMark()Restores the current node remembered by setMark().- Specified by:
- gotoMark from DTMAxisIterator
-
nexttop
public int next()Get the next node in the iteration.- Specified by:
- next from DTMAxisIterator
-
resettop
public DTMAxisIterator reset()Resets the iterator to the last start node.- Specified by:
- reset from DTMAxisIterator
- Override hierarchy:
- reset from DTMAxisIteratorBase
-
setMarktop
public void setMark()Remembers the current node for the next call to gotoMark().- Specified by:
- setMark from DTMAxisIterator
-
setRestartabletop
public void setRestartable(boolean isRestartable)Set if restartable.- Specified by:
- setRestartable from DTMAxisIterator
- Override hierarchy:
- setRestartable from DTMAxisIteratorBase
-
setStartNodetop
public DTMAxisIterator setStartNode(int node)Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.- Specified by:
- setStartNode from DTMAxisIterator
Fields
-
_source
private DTMAxisIterator _sourceSource for this iterator.
