org.apache.xpath.axes
public class WalkingIterator extends LocPathIterator implements ExpressionOwner
Constructor Summary | |
---|---|
WalkingIterator(PrefixResolver nscontext)
Create a WalkingIterator object.
|
Method Summary | |
---|---|
void | callVisitors(ExpressionOwner owner, XPathVisitor visitor) |
Object | clone()
Get a cloned WalkingIterator that holds the same
position as this iterator.
|
boolean | deepEquals(Expression expr) |
void | detach()
Detaches the iterator from the set which it iterated over, releasing
any computational resources and placing the iterator in the INVALID
state. |
void | fixupVariables(Vector vars, int globalsSize)
This function is used to fixup variables from QNames to stack frame
indexes at stylesheet build time. |
int | getAnalysisBits()
Get the analysis bits for this walker, as defined in the WalkerFactory. |
Expression | getExpression() |
AxesWalker | getFirstWalker()
Get the head of the walker list.
|
AxesWalker | getLastUsedWalker()
Get the last used walker.
|
int | nextNode()
Returns the next node in the set and advances the position of the
iterator in the set. |
void | reset()
Reset the iterator. |
void | setExpression(Expression exp) |
void | setFirstWalker(AxesWalker walker)
Set the head of the walker list.
|
void | setLastUsedWalker(AxesWalker walker)
Set the last used walker.
|
void | setRoot(int context, Object environment)
Initialize the context values for this expression
after it is cloned.
|
Parameters: nscontext The namespace context for this iterator, should be OK if null.
See Also: XPathVisitable
Returns: A clone of this iterator that holds the same node position.
Throws: CloneNotSupportedException
See Also: deepEquals
detach
has been invoked, calls to
nextNode
orpreviousNode
will raise the
exception INVALID_STATE_ERR.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).
Returns: One of WalkerFactory#BIT_DESCENDANT, etc.
See Also: getExpression
Returns: The head of the walker list, or null if this iterator does not implement walkers.
UNKNOWN: advanced
Returns: The last used walker, or null.
UNKNOWN: advanced
Returns: The next Node
in the set being iterated over, or
null
if there are no more members in that set.
See Also: setExpression
Parameters: walker Should be a valid AxesWalker.
UNKNOWN: advanced
Parameters: walker The last used walker, or null.
UNKNOWN: advanced
Parameters: context The XPath runtime context for this transformation.