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 ForClausePull
base, currentIteration, forClause -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SequenceIteratorgetIterator(XPathContext context) Get an iterator over the items or members in the target collection.protected GroundedValuevariableValue(Item item) Get the value to be bound to the iteration variableMethods inherited from class ForClausePull
close, nextTuple
-
Field Details
-
arrayItem
ArrayItem arrayItem
-
-
Constructor Details
-
ForMemberClausePull
-
-
Method Details
-
getIterator
Description copied from class:ForClausePullGet an iterator over the items or members in the target collection.- Overrides:
getIteratorin 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:ForClausePullGet the value to be bound to the iteration variable- Overrides:
variableValuein classForClausePull- Parameters:
item- the value returned by the sequence iterator- Returns:
- the value to be assigned to the iteration variable
-