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>baseToIdMap baseURI to uriBaseId.private java.util.List<java.util.List<Placeholder>>indexToPlaceholdersprivate java.util.List<Result>resultsprivate java.util.List<Rule>rulesprivate java.util.SortedSet<Taxon>taxaprivate 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.JsonObjectcreateCweTaxonomyJson()(package private) java.util.Map<java.net.URI,java.lang.String>getBaseToId()(package private) com.google.gson.JsonObjectgetCweTaxonomy()(package private) com.google.gson.JsonObjectgetOriginalUriBaseIds()(package private) com.google.gson.JsonArraygetResults()(package private) com.google.gson.JsonArraygetRules()private voidprocessResult(int index, BugInstance bug, SourceFinder sourceFinder)private intprocessRule(BugPattern bugPattern)private voidprocessTaxon(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()
-
-