public interface Fold
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
|
void processItem(Item item) throws XPathException
item
- the item to be processed from the input sequenceXPathException
- if a dynamic error occursboolean isFinished()
Sequence result() throws XPathException
XPathException
- if a dynamic error occursCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.