| org.apache.xpath.axes.PredicatedNodeTest org.apache.xpath.axes.AxesWalker org.apache.xpath.axes.FilterExprWalker
Method Summary | |
public short | acceptNode(int n) This method needs to override AxesWalker.acceptNode because FilterExprWalkers
don't need to, and shouldn't, do a node test.
Parameters: n - The node to check to see if it passes the filter or not. | public void | callPredicateVisitors(XPathVisitor visitor) This will traverse the heararchy, calling the visitor for
each member. | public Object | clone() Get a cloned FilterExprWalker. | public boolean | deepEquals(Expression expr) | 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. | public void | fixupVariables(java.util.Vector vars, int globalsSize) 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. | public int | getAnalysisBits() Get the analysis bits for this walker, as defined in the WalkerFactory. | public int | getAxis() Returns the axis being iterated, if it is known. | public Expression | getInnerExpression() Get the inner contained expression of this filter. | public int | getLastPos(XPathContext xctxt) Get the index of the last node that can be itterated to.
Parameters: xctxt - XPath runtime context. | public int | getNextNode() Moves the TreeWalker to the next visible node in document
order relative to the current node, and returns the new node. | public void | init(Compiler compiler, int opPos, int stepType) Init a FilterExprWalker. | public boolean | isDocOrdered() Returns true if all the nodes in the iteration well be returned in document
order. | public void | setInnerExpression(Expression expr) Set the inner contained expression of this filter. | public void | setRoot(int root) Set the root node of the TreeWalker. |
serialVersionUID | final static long serialVersionUID(Code) | | |
FilterExprWalker | public FilterExprWalker(WalkingIterator locPathIterator)(Code) | | Construct a FilterExprWalker using a LocPathIterator.
Parameters: locPathIterator - non-null reference to the parent iterator. |
acceptNode | public short acceptNode(int n)(Code) | | This method needs to override AxesWalker.acceptNode because FilterExprWalkers
don't need to, and shouldn't, do a node test.
Parameters: n - The node to check to see if it passes the filter or not. a constant to determine whether the node is accepted,rejected, or skipped, as defined above . |
callPredicateVisitors | public void callPredicateVisitors(XPathVisitor visitor)(Code) | | This will traverse the heararchy, calling the visitor for
each member. If the called visitor method returns
false, the subtree should not be called.
Parameters: visitor - The visitor whose appropriate method will be called. |
detach | public void detach()(Code) | | Detaches the walker from the set which it iterated over, releasing
any computational resources and placing the iterator in the INVALID
state.
|
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. |
getAxis | public int getAxis()(Code) | | Returns the axis being iterated, if it is known.
Axis.CHILD, etc., or -1 if the axis is not known or is of multiple types. |
getInnerExpression | public Expression getInnerExpression()(Code) | | Get the inner contained expression of this filter.
|
getLastPos | public int getLastPos(XPathContext xctxt)(Code) | | Get the index of the last node that can be itterated to.
Parameters: xctxt - XPath runtime context. the index of the last node that can be itterated to. |
getNextNode | public int getNextNode()(Code) | | Moves the TreeWalker to the next visible node in document
order relative to the current node, and returns the new node. If the
current node has no next node, or if the search for nextNode attempts
to step upward from the TreeWalker's root node, returns
null , and retains the current node.
The new node, or null if the current node has nonext node in the TreeWalker's logical view. |
isDocOrdered | public boolean isDocOrdered()(Code) | | 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!
true as a default. |
setInnerExpression | public void setInnerExpression(Expression expr)(Code) | | Set the inner contained expression of this filter.
|
setRoot | public void setRoot(int root)(Code) | | Set the root node of the TreeWalker.
Parameters: root - non-null reference to the root, or starting point of the query. |
|
|