org.apache.xpath.axes

Class FilterExprIterator

public class FilterExprIterator extends BasicTestIterator

Constructor Summary
FilterExprIterator()
Create a FilterExprIterator object.
FilterExprIterator(Expression expr)
Create a FilterExprIterator object.
Method Summary
voidcallPredicateVisitors(XPathVisitor visitor)
This will traverse the heararchy, calling the visitor for each member.
booleandeepEquals(Expression expr)
voiddetach()
Detaches the walker from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state.
voidfixupVariables(Vector vars, int globalsSize)
This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time.
intgetAnalysisBits()
Get the analysis bits for this walker, as defined in the WalkerFactory.
ExpressiongetInnerExpression()
Get the inner contained expression of this filter.
booleanisDocOrdered()
Returns true if all the nodes in the iteration well be returned in document order.
voidsetInnerExpression(Expression expr)
Set the inner contained expression of this filter.
voidsetRoot(int context, Object environment)
Initialize the context values for this expression after it is cloned.

Constructor Detail

FilterExprIterator

public FilterExprIterator()
Create a FilterExprIterator object.

FilterExprIterator

public FilterExprIterator(Expression expr)
Create a FilterExprIterator object.

Method Detail

callPredicateVisitors

public void callPredicateVisitors(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.

Parameters: visitor The visitor whose appropriate method will be called.

deepEquals

public boolean deepEquals(Expression expr)

See Also: deepEquals

detach

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.

fixupVariables

public void fixupVariables(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. 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()
Get the analysis bits for this walker, as defined in the WalkerFactory.

Returns: One of WalkerFactory#BIT_DESCENDANT, etc.

getInnerExpression

public Expression getInnerExpression()
Get the inner contained expression of this filter.

isDocOrdered

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!

Returns: true as a default.

setInnerExpression

public void setInnerExpression(Expression expr)
Set the inner contained expression of this filter.

setRoot

public void setRoot(int context, Object environment)
Initialize the context values for this expression after it is cloned.

Parameters: context The XPath runtime context for this transformation.

Copyright B) 2006 Apache XML Project. All Rights Reserved.