Methods Summary |
---|
public void | callPredicateVisitors(com.sun.org.apache.xpath.internal.XPathVisitor visitor)This will traverse the heararchy, calling the visitor for
each member. If the called visitor method returns
false, the subtree should not be called.
m_expr.callVisitors(new filterExprOwner(), visitor);
super.callPredicateVisitors(visitor);
|
public boolean | deepEquals(com.sun.org.apache.xpath.internal.Expression expr)
if (!super.deepEquals(expr))
return false;
FilterExprIterator fet = (FilterExprIterator) expr;
if (!m_expr.deepEquals(fet.m_expr))
return false;
return true;
|
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.
super.detach();
m_exprObj.detach();
m_exprObj = null;
|
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.
super.fixupVariables(vars, globalsSize);
m_expr.fixupVariables(vars, globalsSize);
|
public int | getAnalysisBits()Get the analysis bits for this walker, as defined in the WalkerFactory.
if (null != m_expr && m_expr instanceof PathComponent)
{
return ((PathComponent) m_expr).getAnalysisBits();
}
return WalkerFactory.BIT_FILTER;
|
public com.sun.org.apache.xpath.internal.Expression | getInnerExpression()Get the inner contained expression of this filter.
return m_expr;
|
protected int | getNextNode()Get the next node via getNextXXX. Bottlenecked for derived class override.
if (null != m_exprObj)
{
m_lastFetched = m_exprObj.nextNode();
}
else
m_lastFetched = DTM.NULL;
return m_lastFetched;
|
public boolean | isDocOrdered()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!
return m_exprObj.isDocOrdered();
|
public void | setInnerExpression(com.sun.org.apache.xpath.internal.Expression expr)Set the inner contained expression of this filter.
expr.exprSetParent(this);
m_expr = expr;
|
public void | setRoot(int context, java.lang.Object environment)Initialize the context values for this expression
after it is cloned.
super.setRoot(context, environment);
m_exprObj = FilterExprIteratorSimple.executeFilterExpr(context,
m_execContext, getPrefixResolver(),
getIsTopLevel(), m_stackFrame, m_expr);
|