Class ForMemberClausePull


  • public class ForMemberClausePull
    extends ForClausePull
    This class implements the changes to the tuple stream effected by a "for" clause in a FLWOR expression
    • 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 class ForClausePull
        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 class ForClausePull
        Parameters:
        item - the value returned by the sequence iterator
        Returns:
        the value to be assigned to the iteration variable