Package org.htmlunit.xpath.xml.dtm.ref
Class DTMDefaultBaseTraversers.AllFromNodeTraverser
java.lang.Object
org.htmlunit.xpath.xml.dtm.DTMAxisTraverser
org.htmlunit.xpath.xml.dtm.ref.DTMDefaultBaseTraversers.IndexedDTMAxisTraverser
org.htmlunit.xpath.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantTraverser
org.htmlunit.xpath.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantOrSelfTraverser
org.htmlunit.xpath.xml.dtm.ref.DTMDefaultBaseTraversers.AllFromNodeTraverser
- Direct Known Subclasses:
DTMDefaultBaseTraversers.AllFromRootTraverser
- Enclosing class:
DTMDefaultBaseTraversers
private class DTMDefaultBaseTraversers.AllFromNodeTraverser
extends DTMDefaultBaseTraversers.DescendantOrSelfTraverser
Implements traversal of the entire subtree, including the root node.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
next
(int context, int current) Traverse to the next node after the current node.Methods inherited from class org.htmlunit.xpath.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantOrSelfTraverser
first, getFirstPotential
Methods inherited from class org.htmlunit.xpath.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantTraverser
axisHasBeenProcessed, first, getSubtreeRoot, isAfterAxis, isDescendant, next
Methods inherited from class org.htmlunit.xpath.xml.dtm.ref.DTMDefaultBaseTraversers.IndexedDTMAxisTraverser
getNextIndexed, isIndexed
-
Constructor Details
-
AllFromNodeTraverser
private AllFromNodeTraverser()
-
-
Method Details
-
next
public int next(int context, int current) Traverse to the next node after the current node.- Overrides:
next
in classDTMDefaultBaseTraversers.DescendantTraverser
- Parameters:
context
- The context node of this traversal. This is the point of origin for the traversal -- its "root node" or starting point.current
- The current node of the traversal. This is the last known location in the traversal, typically the node-handle returned by the previous traversal step. For the first traversal step, context should be set equal to current. Note that in order to test whether context is in the set, you must use the first() method instead.- Returns:
- the next node in the iteration, or DTM.NULL.
- See Also:
-