Class HighlightingFinder.Result

  • Enclosing class:
    HighlightingFinder

    public static class HighlightingFinder.Result
    extends Object
    This class represents structure that contains found regions for highlighting
    • Constructor Detail

      • Result

        public Result​(List<org.eclipse.jface.text.IRegion> keywords,
                      List<org.eclipse.jface.text.IRegion> stringLiterals,
                      List<org.eclipse.jface.text.IRegion> comments)
        Creates new instance of this with given parameters
        Parameters:
        keywords - Found regions keywords, cannot be null
        stringLiterals - Found regions of string literals, cannot be null
        comments - Found regions of comments, cannot be null
    • Method Detail

      • getKeywords

        public List<org.eclipse.jface.text.IRegion> getKeywords()
        Gets keyword regions
        Returns:
        Found keywords, cannot be null
      • getStringLiterals

        public List<org.eclipse.jface.text.IRegion> getStringLiterals()
        Gets string literal regions
        Returns:
        Found string literals, cannot be null
      • getComments

        public List<org.eclipse.jface.text.IRegion> getComments()
        Gets comment regions
        Returns:
        Found comments, cannot be null