| Modifier and Type | Field and Description |
|---|---|
| private int | _currentIndex
Index in _nodes of the next node to filter. |
| private final int | _currentNode
The current node in the stylesheet at the time of evaluation. |
| private boolean | _docOrder
A flag indicating if nodes are returned in document order. |
| private final CurrentNodeListFilter | _filter
A reference to a filter object. |
| private IntegerArray | _nodes
An integer array to store nodes from source iterator. |
| private DTMAxisIterator | _source
The source for this iterator. |
| private AbstractTranslet | _translet
A reference to the translet. |
| Access | Constructor and Description |
|---|---|
| public | CurrentNodeListIterator(DTMAxisIterator source, CurrentNodeListFilter filter, int currentNode, AbstractTranslet translet)
|
| public | CurrentNodeListIterator(DTMAxisIterator source, boolean docOrder, CurrentNodeListFilter filter, int currentNode, AbstractTranslet translet)
|
| _currentIndex | back to summary |
|---|---|
| private int _currentIndex Index in _nodes of the next node to filter. | |
| _currentNode | back to summary |
|---|---|
| private final int _currentNode The current node in the stylesheet at the time of evaluation. | |
| _docOrder | back to summary |
|---|---|
| private boolean _docOrder A flag indicating if nodes are returned in document order. | |
| _filter | back to summary |
|---|---|
| private final CurrentNodeListFilter _filter A reference to a filter object. | |
| _nodes | back to summary |
|---|---|
| private IntegerArray _nodes An integer array to store nodes from source iterator. | |
| _source | back to summary |
|---|---|
| private DTMAxisIterator _source The source for this iterator. | |
| _translet | back to summary |
|---|---|
| private AbstractTranslet _translet A reference to the translet. | |
| CurrentNodeListIterator | back to summary |
|---|---|
| public CurrentNodeListIterator(DTMAxisIterator source, CurrentNodeListFilter filter, int currentNode, AbstractTranslet translet) | |
| CurrentNodeListIterator | back to summary |
|---|---|
| public CurrentNodeListIterator(DTMAxisIterator source, boolean docOrder, CurrentNodeListFilter filter, int currentNode, AbstractTranslet translet) | |
| 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. | |
| computePositionOfLast | back to summary |
|---|---|
| private int computePositionOfLast() | |
| forceNaturalOrder | back to summary |
|---|---|
| public DTMAxisIterator forceNaturalOrder() | |
| 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. | |
| gotoMark | back to summary |
|---|---|
| public void gotoMark() Implements com. Doc from com. Restores the current node remembered by setMark(). | |
| isReverse | back to summary |
|---|---|
| public boolean isReverse() Overrides com. Implements com. | |
| 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(int node) Implements com. Doc from com. Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END. | |