| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private boolean | |
| private DTMAxisIterator |
| Access | Constructor and Description |
|---|---|
| public |
| _position | back to summary |
|---|---|
| private final int _position Hides com. | |
| _ready | back to summary |
|---|---|
| private boolean _ready | |
| _source | back to summary |
|---|---|
| private DTMAxisIterator _source | |
| NthIterator | back to summary |
|---|---|
| public NthIterator(DTMAxisIterator source, int n) | |
| cloneIterator | back to summary |
|---|---|
| public DTMAxisIterator cloneIterator() Overrides com. Implements com. Doc from com. Returns a deep copy of this iterator. Cloned iterators may not be restartable. The iterator being cloned may or may not become non-restartable as a side effect of this operation. | |
| getLast | back to summary |
|---|---|
| public int getLast() Overrides com. Implements com. Doc from com. Returns the position of the last node within the iteration, as defined by XPath. In a forward iterator, I believe this equals the number of nodes which this iterator will yield. In a reverse iterator, I believe it should return 1 (since the "last" is the first produced.) This may be an expensive operation when called the first time, since it may have to iterate through a large part of the document to produce its answer. | |
| getPosition | back to summary |
|---|---|
| public int getPosition() Overrides com. Implements com. | |
| gotoMark | back to summary |
|---|---|
| public void gotoMark() Implements com. Doc from com. Restores the current node remembered by setMark(). | |
| next | back to summary |
|---|---|
| public int next() Implements com. Doc from com. Get the next node in the iteration. | |
| reset | back to summary |
|---|---|
| public DTMAxisIterator reset() Overrides com. Implements com. Doc from com. Resets the iterator to the last start node. | |
| setMark | back to summary |
|---|---|
| public void setMark() Implements com. Doc from com. Remembers the current node for the next call to gotoMark(). | |
| setRestartable | back to summary |
|---|---|
| public void setRestartable(boolean isRestartable) Overrides com. Implements com. Doc from com. Set if restartable. | |
| setStartNode | back to summary |
|---|---|
| public DTMAxisIterator setStartNode(final int node) Implements com. Doc from com. Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END. | |