org.apache.xpath.axes

Class ReverseAxesWalker

public class ReverseAxesWalker extends AxesWalker

Walker for a reverse axes.

See Also: XPath 2.4 Predicates

Method Summary
voiddetach()
Detaches the walker from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state.
intgetLastPos(XPathContext xctxt)
Get the number of nodes in this node list.
booleanisDocOrdered()
Returns true if all the nodes in the iteration well be returned in document order.
booleanisReverseAxes()
Tells if this is a reverse axes.
voidsetRoot(int root)
Set the root node of the TreeWalker.

Method Detail

detach

public void detach()
Detaches the walker from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state.

getLastPos

public int getLastPos(XPathContext xctxt)
Get the number of nodes in this node list. The function is probably ill named?

Parameters: xctxt The XPath runtime context.

Returns: the number of nodes in this node list.

isDocOrdered

public boolean isDocOrdered()
Returns true if all the nodes in the iteration well be returned in document order. Warning: This can only be called after setRoot has been called!

Returns: false.

isReverseAxes

public boolean isReverseAxes()
Tells if this is a reverse axes. Overrides AxesWalker#isReverseAxes.

Returns: true for this class.

setRoot

public void setRoot(int root)
Set the root node of the TreeWalker. (Not part of the DOM2 TreeWalker interface).

Parameters: root The context node of this step.

Copyright © 2005 Apache XML Project. All Rights Reserved.