Package org.apache.xalan.xsltc.dom
Class SimpleResultTreeImpl.SimpleIterator
- java.lang.Object
-
- org.apache.xml.dtm.ref.DTMAxisIteratorBase
-
- org.apache.xalan.xsltc.dom.SimpleResultTreeImpl.SimpleIterator
-
- All Implemented Interfaces:
java.lang.Cloneable,DTMAxisIterator
- Enclosing class:
- SimpleResultTreeImpl
public final class SimpleResultTreeImpl.SimpleIterator extends DTMAxisIteratorBase
The SimpleIterator is designed to support the nodeset() extension function. It has a traversal direction parameter. The DOWN direction is used for child and descendant axes, while the UP direction is used for parent and ancestor axes. This iterator only handles two nodes (RTF_ROOT and RTF_TEXT). If the type is set, it will also match the node type with the given type.
-
-
Field Summary
-
Fields inherited from interface org.apache.xml.dtm.DTMAxisIterator
END
-
-
Constructor Summary
Constructors Constructor Description SimpleIterator()SimpleIterator(int direction)SimpleIterator(int direction, int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgotoMark()Restores the current node remembered by setMark().intnext()Get the next node in the iteration.voidsetMark()Remembers the current node for the next call to gotoMark().DTMAxisIteratorsetStartNode(int nodeHandle)Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.-
Methods inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase
cloneIterator, getAxis, getLast, getNodeByPosition, getPosition, getStartNode, includeSelf, isDocOrdered, isReverse, reset, setRestartable
-
-
-
-
Method Detail
-
next
public int next()
Description copied from interface:DTMAxisIteratorGet the next node in the iteration.- Returns:
- The next node handle in the iteration, or END.
-
setStartNode
public DTMAxisIterator setStartNode(int nodeHandle)
Description copied from interface:DTMAxisIteratorSet start to END should 'close' the iterator, i.e. subsequent call to next() should return END.- Parameters:
nodeHandle- Sets the root of the iteration.- Returns:
- A DTMAxisIterator set to the start of the iteration.
-
setMark
public void setMark()
Description copied from interface:DTMAxisIteratorRemembers the current node for the next call to gotoMark().
-
gotoMark
public void gotoMark()
Description copied from interface:DTMAxisIteratorRestores the current node remembered by setMark().
-
-