Class AnalyzerResult
-
- All Implemented Interfaces:
public final class AnalyzerResultA class that merges all information from individual ProjectAnalyzerResults created for each found definition file.
-
-
Field Summary
Fields Modifier and Type Field Description public final static AnalyzerResultEMPTYprivate final Set<Project>projectsprivate final Set<Package>packagesprivate final Map<Identifier, List<Issue>>issuesprivate final Map<String, DependencyGraph>dependencyGraphs
-
Constructor Summary
Constructors Constructor Description AnalyzerResult(Set<Project> projects, Set<Package> packages, Map<Identifier, List<Issue>> issues, Map<String, DependencyGraph> dependencyGraphs)
-
Method Summary
Modifier and Type Method Description final Set<Project>getProjects()Sorted set of the projects, as they appear in the individual analyzer results. final Set<Package>getPackages()The set of identified packages for all projects. final Map<Identifier, List<Issue>>getIssues()The lists of Issues that occurred within the analyzed projects themselves. final Map<String, DependencyGraph>getDependencyGraphs()A map with DependencyGraphs keyed by the name of the package manager that created this graph. final Map<Identifier, Set<Issue>>getAllIssues()Return a map of all de-duplicated Issues associated by Identifier. final AnalyzerResultwithResolvedScopes()Return a result, in which all contained Projects have their scope information resolved. -
-
Method Detail
-
getProjects
final Set<Project> getProjects()
Sorted set of the projects, as they appear in the individual analyzer results.
-
getPackages
final Set<Package> getPackages()
The set of identified packages for all projects.
-
getIssues
final Map<Identifier, List<Issue>> getIssues()
The lists of Issues that occurred within the analyzed projects themselves. Issues related to project dependencies are contained in the dependencies of the project's scopes. This property is not serialized if the map is empty to reduce the size of the result file.
-
getDependencyGraphs
final Map<String, DependencyGraph> getDependencyGraphs()
A map with DependencyGraphs keyed by the name of the package manager that created this graph. Package managers supporting this feature can construct a shared DependencyGraph over all projects and store it in this map.
-
getAllIssues
final Map<Identifier, Set<Issue>> getAllIssues()
Return a map of all de-duplicated Issues associated by Identifier.
-
withResolvedScopes
final AnalyzerResult withResolvedScopes()
Return a result, in which all contained Projects have their scope information resolved. If this result has shared dependency graphs, the projects referring to one of these graphs are replaced by corresponding instances that store their dependencies in the classic Scope-based format. Otherwise, this instance is returned without changes.
-
-
-
-