Package crypto.reporting
Class CSVSummaryReporter
- java.lang.Object
-
- crypto.analysis.CrySLAnalysisListener
-
- crypto.reporting.ErrorMarkerListener
-
- crypto.reporting.Reporter
-
- crypto.reporting.CSVSummaryReporter
-
- All Implemented Interfaces:
ICrySLPerformanceListener,ICrySLResultsListener
public class CSVSummaryReporter extends Reporter
This class extends the classReporterby generating a summary of the analysis and write it into a csv file. Compared to theCSVReporterthis reporter will not output any information about the concrete errors found in the analysis. The summary will only contain the number of error types and in which classes from the rule set the errors were found.
-
-
Field Summary
-
Fields inherited from class crypto.reporting.Reporter
analysisWatch, dataflowReachableMethods, objects, statistics
-
Fields inherited from class crypto.reporting.ErrorMarkerListener
errorMarkerCount, errorMarkers, secureObjects
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleAnalysisResults()This method is called after the analysis is finished and all statistics have been computed.voidreportError(AbstractError error)-
Methods inherited from class crypto.reporting.Reporter
afterAnalysis, beforeAnalysis, discoveredSeed, getObjects, getOutputFolder, getRules, getStatistics, includeStatistics, onSeedFinished
-
Methods inherited from class crypto.reporting.ErrorMarkerListener
addProgress, afterConstraintCheck, afterPredicateCheck, beforeConstraintCheck, beforePredicateCheck, boomerangQueryFinished, boomerangQueryStarted, checkedConstraints, collectedValues, ensuredPredicates, filterQuotes, onSecureObjectFound, onSeedTimeout, seedStarted
-
-
-
-
Constructor Detail
-
CSVSummaryReporter
public CSVSummaryReporter(String reportDir, String softwareId, List<CrySLRule> rules, long callGraphConstructionTime, boolean includeStatistics)
Subclass ofReporter. Creates an instance ofCSVSummaryReporter, which can be used to create a csv file containing a summary of the analysis.- Parameters:
reportDir- AStringpath giving the location of the report directory. The reportPath should end without an ending file separator.softwareId- AStringfor the analyzed software.rules- AListofCrySLRulecontaining 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:ReporterThis 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:
handleAnalysisResultsin classReporter
-
reportError
public void reportError(AbstractError error)
- Specified by:
reportErrorin interfaceICrySLResultsListener- Overrides:
reportErrorin classErrorMarkerListener
-
-