Class XPathCompletionSource

    • Method Detail

      • getSortedMatches

        public java.util.stream.Stream<CompletionResult> getSortedMatches​(java.lang.String input,
                                                                          int limit)
        Returns a stream of pre-built TextFlows sorted by relevance. The stream will contain at most "limit" elements.
        Specified by:
        getSortedMatches in interface CompletionResultSource
      • forLanguage

        public static XPathCompletionSource forLanguage​(net.sourceforge.pmd.lang.Language language)
        Gets a suggestion tool suited to the given language.