Interface FileAnalyzer

    • Method Detail

      • getSupportedFileExtensions

        String[] getSupportedFileExtensions()
        Returns all supported file extensions.
        Returns:
        an array of String objects.
      • canAnalyze

        boolean canAnalyze​(File _file)
        Returns true if the given File can be analyzed, false otherwise.
        Parameters:
        _file - a File object.
        Returns:
        a boolean.
      • hasChilds

        boolean hasChilds()
        Returns true if there are any child FileAnalyzers, false otherwise. Some analyzers will never have any childs, e.g., those that parse single source code files. In case of other analyzes, e.g., the DirAnalyzer, it depends on whether there are any "analyzable" files.
        Returns:
        a boolean.
      • getChilds

        Set<FileAnalyzer> getChilds​(boolean _recursive)
        Returns nested FileAnalyzers or null if no child analyzers exist. Depending on the argument, only direct childs or also indirect childs will be returned.
        Parameters:
        _recursive - a boolean.
        Returns:
        a Set object.