org.apache.xalan.xsltc.dom
Class StepIterator
java.lang.Object
|
+--org.apache.xalan.xsltc.dom.NodeIteratorBase
|
+--org.apache.xalan.xsltc.dom.StepIterator
- Direct Known Subclasses:
- FilteredStepIterator
- public class StepIterator
- extends NodeIteratorBase
A step iterator is used to evaluate expressions like "BOOK/TITLE".
A better name for this iterator would have been ParentIterator since
both "BOOK" and "TITLE" are steps in XPath lingo. Step iterators are
constructed from two other iterators which we are going to refer to
as "outer" and "inner". Every node from the outer iterator (the one
for BOOK in our example) is used to initialize the inner iterator.
After this initialization, every node from the inner iterator is
returned (in essence, implementing a "nested loop").
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
StepIterator
public StepIterator(NodeIterator source,
NodeIterator iterator)
setRestartable
public void setRestartable(boolean isRestartable)
- Overrides:
- setRestartable in class NodeIteratorBase
cloneIterator
public NodeIterator cloneIterator()
- Overrides:
- cloneIterator in class NodeIteratorBase
setStartNode
public NodeIterator setStartNode(int node)
- Overrides:
- setStartNode in class NodeIteratorBase
reset
public NodeIterator reset()
- Overrides:
- reset in class NodeIteratorBase
next
public int next()
setMark
public void setMark()
gotoMark
public void gotoMark()
Copyright © 2002 Apache XML Project. All Rights Reserved.