org.apache.xpath.axes

Class WalkingIteratorSorted

public class WalkingIteratorSorted extends WalkingIterator

This class iterates over set of nodes that needs to be sorted.

UNKNOWN: internal

Constructor Summary
WalkingIteratorSorted(PrefixResolver nscontext)
Create a WalkingIteratorSorted object.
Method Summary
voidfixupVariables(Vector vars, int globalsSize)
This function is used to perform some extra analysis of the iterator.
booleanisDocOrdered()
Returns true if all the nodes in the iteration well be returned in document order.

Constructor Detail

WalkingIteratorSorted

public WalkingIteratorSorted(PrefixResolver nscontext)
Create a WalkingIteratorSorted object.

Parameters: nscontext The namespace context for this iterator, should be OK if null.

Method Detail

fixupVariables

public void fixupVariables(Vector vars, int globalsSize)
This function is used to perform some extra analysis of the iterator.

Parameters: vars List of QNames that correspond to variables. This list should be searched backwards for the first qualified name that corresponds to the variable reference qname. The position of the QName in the vector from the start of the vector will be its position in the stack frame (but variables above the globalsTop value will need to be offset to the current stack frame).

isDocOrdered

public boolean isDocOrdered()
Returns true if all the nodes in the iteration well be returned in document order.

Returns: true as a default.

Copyright B) 2006 Apache XML Project. All Rights Reserved.