Class SortKeyDefinitionList

    • Constructor Detail

      • SortKeyDefinitionList

        public SortKeyDefinitionList​(SortKeyDefinition[] sortKeyDefinitions)
        Create a list of sort key definitions
        Parameters:
        sortKeyDefinitions - the sort key definitions, supplied as an array
    • Method Detail

      • operands

        public java.lang.Iterable<Operand> operands()
        Get the operands of this SortKeyDefinitionList, treating it as a pseudo-expression.
        Overrides:
        operands in class Expression
        Returns:
        the operands: specifically, the contained sort key definitions, each of which is also treated as a pseudo-expression.
      • isLiftable

        public boolean isLiftable​(boolean forStreaming)
        Ask whether the expression can be lifted out of a loop, assuming it has no dependencies on the controlling variable/focus of the loop
        Overrides:
        isLiftable in class Expression
        Parameters:
        forStreaming - true if we're optimising for streamed execution
        Returns:
        for a SortKeyDefinitionList, always false
      • size

        public int size()
        Ask how many sort key definitions there are
        Returns:
        the number of sort key definitions in the list (always one or more)
      • getSortKeyDefinition

        public SortKeyDefinition getSortKeyDefinition​(int i)
        Get the i'th sort key definition, counting from zero
        Parameters:
        i - the index of the required sort key definition
        Returns:
        the required sort key definition
      • iterator

        public java.util.Iterator<SortKeyDefinition> iterator()
        Get an iterator over the sort key definitions
        Specified by:
        iterator in interface java.lang.Iterable<SortKeyDefinition>
        Returns:
        an iterator over the sort key definitions
      • export

        public void export​(ExpressionPresenter out)
                    throws XPathException
        Description copied from class: Expression
        Diagnostic print of expression structure. The abstract expression tree is written to the supplied output destination.
        Specified by:
        export in interface ExportAgent
        Specified by:
        export in class Expression
        Parameters:
        out - the expression presenter used to display the structure
        Throws:
        XPathException - if the export fails, for example if an expression is found that won't work in the target environment.