Class KotlinGroovyLanguageSupport

    • Constructor Detail

      • KotlinGroovyLanguageSupport

        public KotlinGroovyLanguageSupport()
    • Method Detail

      • getSupportedFileExtensions

        public Set<String> getSupportedFileExtensions()
        Description copied from interface: LanguageSupport
        The set of supported file extensions. Extensions returned here are case insensitive and may or may not start with a '.' (dot).
        Specified by:
        getSupportedFileExtensions in interface LanguageSupport
        Returns:
        The set of file extensions.
      • parseImport

        public List<ImportStatement> parseImport​(String line,
                                                 int lineNumber)
        Description copied from interface: LanguageSupport
        Extract the package names that this import statement represents. As some languages allow to specify multiple imports in a single line, this method returns a list.

        e.g. import java.util.List; The above should return java.util.List in a Java source file.

        Specified by:
        parseImport in interface LanguageSupport
        Parameters:
        line - Line in the source file
        lineNumber - The line number of the import.
        Returns:
        Fully qualified package name that this import represents