Package net.sf.saxon.expr.flwor
Class ForMemberClausePull
java.lang.Object
net.sf.saxon.expr.flwor.TuplePull
net.sf.saxon.expr.flwor.ForClausePull
net.sf.saxon.expr.flwor.ForMemberClausePull
This class implements the changes to the tuple stream effected by a "for" clause in a FLWOR expression
-
Field Summary
FieldsFields inherited from class net.sf.saxon.expr.flwor.ForClausePull
base, currentIteration, forClause
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SequenceIterator
getIterator
(XPathContext context) Get an iterator over the items or members in the target collection.protected GroundedValue
variableValue
(Item item) Get the value to be bound to the iteration variableMethods inherited from class net.sf.saxon.expr.flwor.ForClausePull
close, nextTuple
-
Field Details
-
arrayItem
ArrayItem arrayItem
-
-
Constructor Details
-
ForMemberClausePull
-
-
Method Details
-
getIterator
Description copied from class:ForClausePull
Get an iterator over the items or members in the target collection.- Overrides:
getIterator
in classForClausePull
- Parameters:
context
- dynamic evaluation context- Returns:
- for a simple "for $x" clause, the sequence of items to which $x will be bound. For a "for member ¢x" clause, the sequence of array members, each wrapped as an object value
- Throws:
XPathException
- if evaluation fails
-
variableValue
Description copied from class:ForClausePull
Get the value to be bound to the iteration variable- Overrides:
variableValue
in classForClausePull
- Parameters:
item
- the value returned by the sequence iterator- Returns:
- the value to be assigned to the iteration variable
-