| org.apache.xpath.axes.PredicatedNodeTest org.apache.xpath.axes.LocPathIterator org.apache.xpath.axes.WalkingIterator org.apache.xpath.axes.WalkingIteratorSorted
WalkingIteratorSorted | public class WalkingIteratorSorted extends WalkingIterator (Code) | | This class iterates over set of nodes that needs to be sorted.
|
Constructor Summary | |
public | WalkingIteratorSorted(PrefixResolver nscontext) Create a WalkingIteratorSorted object. | | WalkingIteratorSorted(Compiler compiler, int opPos, int analysis, boolean shouldLoadWalkers) Create a WalkingIterator iterator, including creation
of step walkers from the opcode list, and call back
into the Compiler to create predicate expressions. |
Method Summary | |
boolean | canBeWalkedInNaturalDocOrderStatic() Tell if the nodeset can be walked in doc order, via static analysis. | public void | fixupVariables(java.util.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. | public boolean | isDocOrdered() Returns true if all the nodes in the iteration well be returned in document
order. |
m_inNaturalOrderStatic | protected boolean m_inNaturalOrderStatic(Code) | | True if the nodes will be found in document order, and this can
be determined statically.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
WalkingIteratorSorted | public WalkingIteratorSorted(PrefixResolver nscontext)(Code) | | Create a WalkingIteratorSorted object.
Parameters: nscontext - The namespace context for this iterator,should be OK if null. |
WalkingIteratorSorted | WalkingIteratorSorted(Compiler compiler, int opPos, int analysis, boolean shouldLoadWalkers) throws javax.xml.transform.TransformerException(Code) | | Create a WalkingIterator iterator, including creation
of step walkers from the opcode list, and call back
into the Compiler to create predicate expressions.
Parameters: compiler - The Compiler which is creatingthis expression. Parameters: opPos - The position of this iterator in theopcode list from the compiler. Parameters: shouldLoadWalkers - True if walkers should beloaded, or false if this is a derived iterator andit doesn't wish to load child walkers. throws: javax.xml.transform.TransformerException - |
canBeWalkedInNaturalDocOrderStatic | boolean canBeWalkedInNaturalDocOrderStatic()(Code) | | Tell if the nodeset can be walked in doc order, via static analysis.
true if the nodeset can be walked in doc order, without sorting. |
fixupVariables | public void fixupVariables(java.util.Vector vars, int globalsSize)(Code) | | 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()(Code) | | Returns true if all the nodes in the iteration well be returned in document
order.
true as a default. |
|
|