| org.apache.xpath.axes.PredicatedNodeTest org.apache.xpath.axes.LocPathIterator org.apache.xpath.axes.WalkingIterator
All known Subclasses: org.apache.xpath.axes.WalkingIteratorSorted,
Constructor Summary | |
| WalkingIterator(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. | public | WalkingIterator(PrefixResolver nscontext) Create a WalkingIterator object. |
m_firstWalker | protected AxesWalker m_firstWalker(Code) | | The head of the step walker list.
|
m_lastUsedWalker | protected AxesWalker m_lastUsedWalker(Code) | | The last used step walker in the walker list.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
WalkingIterator | WalkingIterator(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 - |
WalkingIterator | public WalkingIterator(PrefixResolver nscontext)(Code) | | Create a WalkingIterator object.
Parameters: nscontext - The namespace context for this iterator,should be OK if null. |
detach | public void detach()(Code) | | Detaches the iterator from the set which it iterated over, releasing
any computational resources and placing the iterator in the INVALID
state. Afterdetach has been invoked, calls to
nextNode orpreviousNode will raise the
exception INVALID_STATE_ERR.
|
fixupVariables | public void fixupVariables(java.util.Vector vars, int globalsSize)(Code) | | This function is used to fixup variables from QNames to stack frame
indexes at stylesheet build time.
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). |
getAnalysisBits | public int getAnalysisBits()(Code) | | Get the analysis bits for this walker, as defined in the WalkerFactory.
One of WalkerFactory#BIT_DESCENDANT, etc. |
getFirstWalker | final public AxesWalker getFirstWalker()(Code) | | Get the head of the walker list.
The head of the walker list, or nullif this iterator does not implement walkers. |
getLastUsedWalker | final public AxesWalker getLastUsedWalker()(Code) | | Get the last used walker.
The last used walker, or null. |
nextNode | public int nextNode()(Code) | | Returns the next node in the set and advances the position of the
iterator in the set. After a NodeIterator is created, the first call
to nextNode() returns the first node in the set.
The next Node in the set being iterated over, ornull if there are no more members in that set. |
reset | public void reset()(Code) | | Reset the iterator.
|
setFirstWalker | final public void setFirstWalker(AxesWalker walker)(Code) | | Set the head of the walker list.
Parameters: walker - Should be a valid AxesWalker. |
setLastUsedWalker | final public void setLastUsedWalker(AxesWalker walker)(Code) | | Set the last used walker.
Parameters: walker - The last used walker, or null. |
setRoot | public void setRoot(int context, Object environment)(Code) | | Initialize the context values for this expression
after it is cloned.
Parameters: context - The XPath runtime context for thistransformation. |
|
|