|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xml.dtm.DTMAxisTraverser
org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.IndexedDTMAxisTraverser
org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantTraverser
private class DTMDefaultBaseTraversers.DescendantTraverser
Implements traversal of the Ancestor access, in reverse document order.
| Constructor Summary | |
|---|---|
private |
DTMDefaultBaseTraversers.DescendantTraverser()
|
| Method Summary | |
|---|---|
protected boolean |
axisHasBeenProcessed(int axisRoot)
Tell if the axis has been fully processed to tell if a the wait for an arriving node should terminate. |
int |
first(int context,
int expandedTypeID)
By the nature of the stateless traversal, the context node can not be returned or the iteration will go into an infinate loop. |
protected int |
getFirstPotential(int identity)
Get the first potential identity that can be returned. |
protected int |
getSubtreeRoot(int handle)
Get the subtree root identity from the handle that was passed in by the caller. |
protected boolean |
isAfterAxis(int axisRoot,
int identity)
Tell if a node is outside the axis being traversed. |
protected boolean |
isDescendant(int subtreeRootIdentity,
int identity)
Tell if this node identity is a descendant. |
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.IndexedDTMAxisTraverser |
|---|
getNextIndexed, isIndexed |
| Methods inherited from class org.apache.xml.dtm.DTMAxisTraverser |
|---|
first |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private DTMDefaultBaseTraversers.DescendantTraverser()
| Method Detail |
|---|
protected int getFirstPotential(int identity)
identity - The node identity of the root context of the traversal.
protected boolean axisHasBeenProcessed(int axisRoot)
axisHasBeenProcessed in class DTMDefaultBaseTraversers.IndexedDTMAxisTraverseraxisRoot - The root identity of the axis.
protected int getSubtreeRoot(int handle)
handle - handle to the root context.
protected boolean isDescendant(int subtreeRootIdentity,
int identity)
subtreeRootIdentity - The root context of the subtree in question.identity - The index number of the node in question.
protected boolean isAfterAxis(int axisRoot,
int identity)
isAfterAxis in class DTMDefaultBaseTraversers.IndexedDTMAxisTraverseraxisRoot - The root identity of the axis.identity - The node in question.
public int first(int context,
int expandedTypeID)
This method needs to be overloaded only by those axis that process the self node. <\p>
first in class DTMAxisTraversercontext - The context node of this traversal. This is the point
of origin for the traversal -- its "root node" or starting point.expandedTypeID - The expanded type ID that must match.
public int next(int context,
int current)
next in class DTMAxisTraversercontext - The context node of this iteration.current - The current node of the iteration.
DTMAxisTraverser.first(int)
public int next(int context,
int current,
int expandedTypeID)
next in class DTMAxisTraversercontext - The context node of this iteration.current - The current node of the iteration.expandedTypeID - The expanded type ID that must match.
DTMAxisTraverser.first(int,int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||