Package net.sf.saxon.expr.flwor
Class WhileClausePush
java.lang.Object
net.sf.saxon.expr.flwor.TuplePush
net.sf.saxon.expr.flwor.WhileClausePush
This class represents the tuple stream delivered as the output of a while clause in a
FLWOR expression: that is, it supplies all the tuples in its input stream that satisfy
a specified predicate until it finds one that doesn't. It does not change the values
of any variables in the tuple stream.
-
Constructor Summary
ConstructorsConstructorDescriptionWhileClausePush
(Outputter outputter, TuplePush destination, BooleanEvaluator predicate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the tuple stream, indicating that no more tuples will be suppliedvoid
processTuple
(XPathContext context) Notify the availability of the next tuple.Methods inherited from class net.sf.saxon.expr.flwor.TuplePush
getOutputter
-
Constructor Details
-
WhileClausePush
-
-
Method Details
-
processTuple
Description copied from class:TuplePush
Notify the availability of the next tuple. Before calling this method, the supplier of the tuples must set all the variables corresponding to the supplied tuple in the local stack frame associated with the context object- Specified by:
processTuple
in classTuplePush
- Parameters:
context
- the dynamic evaluation context- Throws:
XPathException
- if a dynamic error occurs
-
close
Description copied from class:TuplePush
Close the tuple stream, indicating that no more tuples will be supplied- Overrides:
close
in classTuplePush
- Throws:
XPathException
- if a dynamic error occurs
-