org.apache.xml.dtm.ref
Class DTMDefaultBaseTraversers.RootTraverser

java.lang.Object
  extended by org.apache.xml.dtm.DTMAxisTraverser
      extended by org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.IndexedDTMAxisTraverser
          extended by org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantTraverser
              extended by org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantOrSelfTraverser
                  extended by org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.AllFromNodeTraverser
                      extended by org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.AllFromRootTraverser
                          extended by org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.RootTraverser
Enclosing class:
DTMDefaultBaseTraversers

private class DTMDefaultBaseTraversers.RootTraverser
extends DTMDefaultBaseTraversers.AllFromRootTraverser

Implements traversal of the Self axis.


Constructor Summary
private DTMDefaultBaseTraversers.RootTraverser()
           
 
Method Summary
 int first(int context, int expandedTypeID)
          Return the root if it matches the expanded type ID, else return null (nothing found)
 int next(int context, int current)
          Traverse to the next node after the current node.
 int next(int context, int current, int expandedTypeID)
          Traverse to the next node after the current node that is matched by the expanded type ID.
 
Methods inherited from class org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.AllFromRootTraverser
first
 
Methods inherited from class org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantOrSelfTraverser
getFirstPotential
 
Methods inherited from class org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantTraverser
axisHasBeenProcessed, getSubtreeRoot, isAfterAxis, isDescendant
 
Methods inherited from class org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.IndexedDTMAxisTraverser
getNextIndexed, isIndexed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTMDefaultBaseTraversers.RootTraverser

private DTMDefaultBaseTraversers.RootTraverser()
Method Detail

first

public int first(int context,
                 int expandedTypeID)
Return the root if it matches the expanded type ID, else return null (nothing found)

Overrides:
first in class DTMDefaultBaseTraversers.AllFromRootTraverser
Parameters:
context - The context node of this traversal.
expandedTypeID - The expanded type ID that must match.
Returns:
the first node in the traversal.

next

public int next(int context,
                int current)
Traverse to the next node after the current node.

Overrides:
next in class DTMDefaultBaseTraversers.AllFromRootTraverser
Parameters:
context - The context node of this iteration.
current - The current node of the iteration.
Returns:
Always return NULL for this axis.
See Also:
DTMAxisTraverser.first(int)

next

public int next(int context,
                int current,
                int expandedTypeID)
Traverse to the next node after the current node that is matched by the expanded type ID.

Overrides:
next in class DTMDefaultBaseTraversers.AllFromRootTraverser
Parameters:
context - The context node of this iteration.
current - The current node of the iteration.
expandedTypeID - The expanded type ID that must match.
Returns:
the next node in the iteration, or DTM.NULL.
See Also:
DTMAxisTraverser.first(int,int)