public abstract class DTMAxisIteratorBase extends Object implements DTMAxisIterator
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_includeSelf
True if the start node should be considered part of the iteration.
|
protected boolean |
_isRestartable
True if this iteration can be restarted.
|
protected int |
_position
The position of the current node within the iteration, as defined by XPath.
|
protected int |
_startNode
The handle to the start, or root, of the iteration.
|
END| Constructor and Description |
|---|
DTMAxisIteratorBase() |
| Modifier and Type | Method and Description |
|---|---|
DTMAxisIterator |
cloneIterator()
Returns a deep copy of this iterator.
|
DTMAxisIterator |
includeSelf()
Set the flag to include the start node in the iteration.
|
boolean |
isReverse() |
void |
reset()
Resets the iterator to the last start node.
|
protected void |
resetPosition()
Reset the position to zero.
|
protected int |
returnNode(int node)
Do any final cleanup that is required before returning the node that was passed in, and then
return it.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnext, setStartNodeprotected int _position
protected int _startNode
protected boolean _includeSelf
protected boolean _isRestartable
public void reset()
DTMAxisIteratorreset in interface DTMAxisIteratorpublic DTMAxisIterator includeSelf()
public boolean isReverse()
isReverse in interface DTMAxisIteratorpublic DTMAxisIterator cloneIterator()
cloneIterator in interface DTMAxisIteratorprotected final int returnNode(int node)
return returnNode(node); %REVIEW% If we're calling it purely for side effects,
should we really be bothering with a return value? Something like accept(node); return node; node - Node handle which iteration is about to yield.protected final void resetPosition()
%REVIEW% Document when this would be used?
Copyright © 2022–2025 HtmlUnit. All rights reserved.