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
-
public class ForMemberClausePull extends ForClausePull
This class implements the changes to the tuple stream effected by a "for" clause in a FLWOR expression
-
-
Field Summary
-
Fields inherited from class net.sf.saxon.expr.flwor.ForClausePull
base, currentIteration, forClause
-
-
Constructor Summary
Constructors Constructor Description ForMemberClausePull(TuplePull base, ForMemberClause forClause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 variable-
Methods inherited from class net.sf.saxon.expr.flwor.ForClausePull
close, nextTuple
-
-
-
-
Constructor Detail
-
ForMemberClausePull
public ForMemberClausePull(TuplePull base, ForMemberClause forClause)
-
-
Method Detail
-
getIterator
protected SequenceIterator getIterator(XPathContext context) throws XPathException
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
protected GroundedValue variableValue(Item item)
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
-
-