| org.apache.xpath.axes.PredicatedNodeTest org.apache.xpath.axes.LocPathIterator org.apache.xpath.axes.FilterExprIteratorSimple
FilterExprIteratorSimple | public class FilterExprIteratorSimple extends LocPathIterator (Code) | | Class to use for one-step iteration that doesn't have a predicate, and
doesn't need to set the context.
|
Method Summary | |
public void | callPredicateVisitors(XPathVisitor visitor) This will traverse the heararchy, calling the visitor for
each member. | 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 static XNodeSet | executeFilterExpr(int context, XPathContext xctxt, PrefixResolver prefixResolver, boolean isTopLevel, int stackFrame, Expression expr) Execute the expression. | 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 boolean | isDocOrdered() Returns true if all the nodes in the iteration well be returned in document
order. | public int | nextNode() Returns the next node in the set and advances the position of the
iterator in the set. | public void | setInnerExpression(Expression expr) Set the inner contained expression of this filter. | public void | setRoot(int context, Object environment) Initialize the context values for this expression
after it is cloned. |
serialVersionUID | final static long serialVersionUID(Code) | | |
FilterExprIteratorSimple | public FilterExprIteratorSimple()(Code) | | Create a FilterExprIteratorSimple object.
|
FilterExprIteratorSimple | public FilterExprIteratorSimple(Expression expr)(Code) | | Create a FilterExprIteratorSimple object.
|
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.
|
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. |
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. |
setInnerExpression | public void setInnerExpression(Expression expr)(Code) | | Set the inner contained expression of this filter.
|
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. |
|
|