Class XPathCompletionSource

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static XPathCompletionSource forLanguage​(net.sourceforge.pmd.lang.Language language)
      Gets a suggestion tool suited to the given language.
      java.util.stream.Stream<MatchResult<java.lang.String>> getSortedMatches​(java.lang.String input, int limit)
      Returns a stream of pre-built TextFlows sorted by relevance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSortedMatches

        public java.util.stream.Stream<MatchResult<java.lang.String>> 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.