Class CustomImportOrderCheck.ImportDetails

    • Constructor Detail

      • ImportDetails

        private ImportDetails​(String importFullPath,
                              String importGroup,
                              boolean staticImport,
                              DetailAST importAST)
        Initialise importFullPath, importGroup, staticImport, importAST.
        Parameters:
        importFullPath - import full path.
        importGroup - import group.
        staticImport - if import is static.
        importAST - import ast
    • Method Detail

      • getImportFullPath

        public String getImportFullPath()
        Get import full path variable.
        Returns:
        import full path variable.
      • getStartLineNumber

        public int getStartLineNumber()
        Get import start line number from ast.
        Returns:
        import start line from ast.
      • getEndLineNumber

        public int getEndLineNumber()
        Get import end line number from ast.

        Note: It can be different from startLineNumber when import statement span multiple lines.

        Returns:
        import end line from ast.
      • isStaticImport

        public boolean isStaticImport()
        Checks if import is static.
        Returns:
        true, if import is static.