Class CommandLineReporter

    • Constructor Detail

      • CommandLineReporter

        public CommandLineReporter​(String reportDir,
                                   List<CrySLRule> rules)
        Subclass of Reporter. Creates an instance of CommandLineReporter with reportDir and rules as parameter
        Parameters:
        reportDir - a String path giving the location of the report directory
        rules - CrySLRule the rules with which the project is analyzed
      • CommandLineReporter

        public CommandLineReporter​(String softwareID,
                                   List<CrySLRule> rules,
                                   long callgraphConstructionTime,
                                   boolean includeStatistics)
        Subclass of Reporter. Creates an instance of CommandLineReporter, which can be used to print an analysis report to stdout.
        Parameters:
        softwareID - A String for the analyzed software.
        rules - A List of CrySLRule containing the rules the program is analyzed with.
        callgraphConstructionTime - The time in milliseconds for the construction of the callgraph.
        includeStatistics - Set this value to true, if the analysis report should contain some analysis statistics (e.g. the callgraph construction time). If this value is set to false, no statistics will be output.
    • Method Detail

      • handleAnalysisResults

        public void handleAnalysisResults()
        Description copied from class: Reporter
        This method is called after the analysis is finished and all statistics have been computed. A subclass can override this method to extend the actions after the analysis, e.g. creating an analysis report and write it into a file.
        Specified by:
        handleAnalysisResults in class Reporter