Package net.sf.saxon.expr.flwor
Class CountClausePush
- java.lang.Object
-
- net.sf.saxon.expr.flwor.TuplePush
-
- net.sf.saxon.expr.flwor.CountClausePush
-
public class CountClausePush extends TuplePush
A tuple stream in push mode that implements a "count" clause in an XQuery 3.0 FLWOR expression
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intcount(package private) TuplePushdestination(package private) intslot
-
Constructor Summary
Constructors Constructor Description CountClausePush(Outputter outputter, TuplePush destination, CountClause countClause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the tuple stream, indicating that no more tuples will be suppliedvoidprocessTuple(XPathContext context)Notify the availability of the next tuple.-
Methods inherited from class net.sf.saxon.expr.flwor.TuplePush
getOutputter
-
-
-
-
Field Detail
-
destination
TuplePush destination
-
slot
int slot
-
count
int count
-
-
Constructor Detail
-
CountClausePush
public CountClausePush(Outputter outputter, TuplePush destination, CountClause countClause)
-
-
Method Detail
-
processTuple
public void processTuple(XPathContext context) throws XPathException
Description copied from class:TuplePushNotify 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:
processTuplein classTuplePush- Parameters:
context- the dynamic evaluation context- Throws:
XPathException- if a dynamic error occurs
-
close
public void close() throws XPathExceptionClose the tuple stream, indicating that no more tuples will be supplied- Overrides:
closein classTuplePush- Throws:
XPathException- if a dynamic error occurs
-
-