|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xpath.Expression org.apache.xpath.patterns.NodeTest org.apache.xpath.axes.PredicatedNodeTest org.apache.xpath.axes.AxesWalker org.apache.xpath.axes.ReverseAxesWalker
Walker for a reverse axes.
Nested Class Summary |
Nested classes inherited from class org.apache.xpath.axes.PredicatedNodeTest |
PredicatedNodeTest.PredOwner |
Field Summary | |
protected DTMAxisIterator |
m_iterator
The DTM inner traversal class, that corresponds to the super axis. |
Fields inherited from class org.apache.xpath.axes.AxesWalker |
m_axis, m_isFresh, m_nextWalker, m_prevWalker, m_root, m_traverser |
Fields inherited from class org.apache.xpath.axes.PredicatedNodeTest |
DEBUG_PREDICATECOUNTING, m_foundLast, m_lpi, m_predCount, m_predicateIndex, m_proximityPositions |
Fields inherited from class org.apache.xpath.patterns.NodeTest |
m_name, m_whatToShow, SCORE_NODETEST, SCORE_NONE, SCORE_NSWILD, SCORE_OTHER, SCORE_QNAME, SHOW_BYFUNCTION, SUPPORTS_PRE_STRIPPING, WILD |
Fields inherited from class org.apache.xpath.Expression |
|
Constructor Summary | |
(package private) |
ReverseAxesWalker(LocPathIterator locPathIterator,
int axis)
Construct an AxesWalker using a LocPathIterator. |
Method Summary | |
protected void |
countProximityPosition(int i)
Count backwards one proximity position. |
int |
getLastPos(XPathContext xctxt)
Get the number of nodes in this node list. |
protected int |
getNextNode()
Get the next node in document order on the axes. |
protected int |
getProximityPosition(int predicateIndex)
Get the current sub-context position. |
boolean |
isDocOrdered()
Returns true if all the nodes in the iteration well be returned in document order. |
boolean |
isReverseAxes()
Tells if this is a reverse axes. |
void |
setRoot(int root)
Set the root node of the TreeWalker. |
Methods inherited from class org.apache.xpath.axes.AxesWalker |
callVisitors, clone, cloneDeep, deepEquals, detach, findClone, getAnalysisBits, getAxis, getCurrentNode, getDTM, getExpression, getNextWalker, getPrevWalker, getRoot, init, nextNode, setDefaultDTM, setExpression, setNextWalker, setPrevWalker, wi |
Methods inherited from class org.apache.xpath.axes.PredicatedNodeTest |
acceptNode, callPredicateVisitors, canTraverseOutsideSubtree, executePredicates, fixupVariables, getLocPathIterator, getPredicate, getPredicateCount, getPredicateIndex, getProximityPosition, getProximityPosition, initPredicateInfo, initProximityPosition, nodeToString, resetProximityPositions, setLocPathIterator, setPredicateCount |
Methods inherited from class org.apache.xpath.patterns.NodeTest |
calcScore, debugWhatToShow, execute, execute, execute, getDefaultScore, getLocalName, getNamespace, getNodeTypeTest, getStaticScore, getWhatToShow, initNodeTest, initNodeTest, setLocalName, setNamespace, setStaticScore, setWhatToShow |
Methods inherited from class org.apache.xpath.Expression |
asIterator, asIteratorRaw, asNode, assertion, bool, error, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isSameClass, isStableNumber, num, warn, xstr |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected DTMAxisIterator m_iterator
Constructor Detail |
ReverseAxesWalker(LocPathIterator locPathIterator, int axis)
locPathIterator
- The location path iterator that 'owns' this walker.Method Detail |
public void setRoot(int root)
setRoot
in class AxesWalker
root
- The context node of this step.protected int getNextNode()
getNextNode
in class AxesWalker
public boolean isReverseAxes()
isReverseAxes
in class PredicatedNodeTest
protected int getProximityPosition(int predicateIndex)
getProximityPosition
in class PredicatedNodeTest
predicateIndex
- The predicate index of the proximity position.
protected void countProximityPosition(int i)
countProximityPosition
in class PredicatedNodeTest
i
- The predicate index.public int getLastPos(XPathContext xctxt)
getLastPos
in interface SubContextList
getLastPos
in class AxesWalker
xctxt
- The XPath runtime context.
public boolean isDocOrdered()
isDocOrdered
in class AxesWalker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |