public class ForClausePull extends TuplePull
| Modifier and Type | Field and Description |
|---|---|
protected TuplePull |
base |
protected FocusIterator |
currentIteration |
protected ForClause |
forClause |
| Constructor and Description |
|---|
ForClausePull(TuplePull base,
ForClause forClause) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the tuple stream, indicating that although not all tuples have been read,
no further tuples are required and resources can be released
|
protected SequenceIterator |
getIterator(XPathContext context)
Get an iterator over the items or members in the target collection.
|
boolean |
nextTuple(XPathContext context)
Move on to the next tuple.
|
protected GroundedValue |
variableValue(Item item)
Get the value to be bound to the iteration variable
|
protected TuplePull base
protected ForClause forClause
protected FocusIterator currentIteration
public boolean nextTuple(XPathContext context) throws XPathException
nextTuple in class TuplePullcontext - the dynamic evaluation contextXPathException - if any error occursprotected SequenceIterator getIterator(XPathContext context) throws XPathException
context - dynamic evaluation contextXPathException - if evaluation failsprotected GroundedValue variableValue(Item item)
item - the value returned by the sequence iteratorCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.