Class CustomImportOrderCheck.ImportDetails

    • Constructor Summary

      Constructors 
      Constructor Description
      ImportDetails​(java.lang.String importFullPath, java.lang.String importGroup, boolean staticImport, DetailAST importAST)
      Initialise importFullPath, importGroup, staticImport, importAST.
    • Constructor Detail

      • ImportDetails

        ImportDetails​(java.lang.String importFullPath,
                      java.lang.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 java.lang.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.
      • getImportGroup

        public java.lang.String getImportGroup()
        Get import group.
        Returns:
        import group.
      • isStaticImport

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