Package edu.umd.cs.findbugs.sarif
Class BugCollectionAnalyser
- java.lang.Object
-
- edu.umd.cs.findbugs.sarif.BugCollectionAnalyser
-
class BugCollectionAnalyser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.net.URI,java.lang.String>
baseToId
Map baseURI to uriBaseId.private java.util.List<java.util.List<Placeholder>>
indexToPlaceholders
private java.util.List<Result>
results
private java.util.List<Rule>
rules
private java.util.SortedSet<Taxon>
taxa
private java.util.Map<java.lang.String,java.lang.Integer>
typeToIndex
-
Constructor Summary
Constructors Constructor Description BugCollectionAnalyser(BugCollection bugCollection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private com.google.gson.JsonObject
createCweTaxonomyJson()
(package private) java.util.Map<java.net.URI,java.lang.String>
getBaseToId()
(package private) com.google.gson.JsonObject
getCweTaxonomy()
(package private) com.google.gson.JsonObject
getOriginalUriBaseIds()
(package private) com.google.gson.JsonArray
getResults()
(package private) com.google.gson.JsonArray
getRules()
private void
processResult(int index, BugInstance bug, SourceFinder sourceFinder)
private int
processRule(BugPattern bugPattern)
private void
processTaxon(int cweid)
-
-
-
Field Detail
-
typeToIndex
@NonNull private final java.util.Map<java.lang.String,java.lang.Integer> typeToIndex
-
indexToPlaceholders
@NonNull private final java.util.List<java.util.List<Placeholder>> indexToPlaceholders
-
baseToId
@NonNull private final java.util.Map<java.net.URI,java.lang.String> baseToId
Map baseURI to uriBaseId. e.g."/user/ubuntu/github/spotbugs/" -> "8736793520"
-
-
Constructor Detail
-
BugCollectionAnalyser
BugCollectionAnalyser(@NonNull BugCollection bugCollection)
-
-
Method Detail
-
getRules
com.google.gson.JsonArray getRules()
-
getResults
com.google.gson.JsonArray getResults()
-
getCweTaxonomy
com.google.gson.JsonObject getCweTaxonomy()
-
getOriginalUriBaseIds
@NonNull com.google.gson.JsonObject getOriginalUriBaseIds()
-
createCweTaxonomyJson
private com.google.gson.JsonObject createCweTaxonomyJson()
-
processResult
private void processResult(int index, BugInstance bug, SourceFinder sourceFinder)
-
processRule
private int processRule(BugPattern bugPattern)
-
processTaxon
private void processTaxon(int cweid)
-
getBaseToId
java.util.Map<java.net.URI,java.lang.String> getBaseToId()
-
-