@ThreadSafe public abstract class AbstractSuppressionAnalyzer extends AbstractAnalyzer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SUPPRESSION_OBJECT_KEY
The key used to store and retrieve the suppression files.
|
Constructor and Description |
---|
AbstractSuppressionAnalyzer() |
Modifier and Type | Method and Description |
---|---|
protected void |
analyzeDependency(Dependency dependency,
Engine engine)
Analyzes a given dependency.
|
static int |
getRuleCount(Engine engine)
Returns the number of suppression rules currently loaded in the engine.
|
java.util.Set<java.lang.String> |
getSupportedExtensions()
Returns a list of file EXTENSIONS supported by this analyzer.
|
void |
prepareAnalyzer(Engine engine)
The prepare method loads the suppression XML file.
|
analyze, close, closeAnalyzer, getAnalyzerEnabledSettingKey, getSettings, initialize, isEnabled, prepare, setEnabled, supportsParallelProcessing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnalysisPhase, getName
public static final java.lang.String SUPPRESSION_OBJECT_KEY
public java.util.Set<java.lang.String> getSupportedExtensions()
public void prepareAnalyzer(Engine engine) throws InitializationException
prepareAnalyzer
in class AbstractAnalyzer
engine
- a reference the dependency-check engineInitializationException
- thrown if there is an exceptionprotected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
AbstractAnalyzer
analyzeDependency
in class AbstractAnalyzer
dependency
- the dependency to analyzeengine
- the engine scanningAnalysisException
- thrown if there is an analysis exceptionpublic static int getRuleCount(Engine engine)
engine
- a reference to the ODC engineCopyright© 2012-21 Jeremy Long. All Rights Reserved.