public class FoldLeftFn.FoldLeftFold extends Object implements Fold
| Constructor and Description |
|---|
FoldLeftFn.FoldLeftFold(XPathContext context,
Sequence zero,
FunctionItem function) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFinished()
Ask whether the computation has completed.
|
void |
processItem(Item item)
Process one item in the input sequence, returning a new copy of the working data
|
Sequence |
result()
Compute the final result of the function, when all the input has been processed
|
public FoldLeftFn.FoldLeftFold(XPathContext context, Sequence zero, FunctionItem function)
public void processItem(Item item) throws XPathException
FoldprocessItem in interface Folditem - the item to be processed from the input sequenceXPathException - if a dynamic error occurspublic boolean isFinished()
FoldisFinished in interface FoldCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.