@ThreadSafe public abstract class AbstractAnalyzer extends java.lang.Object implements Analyzer
| Constructor and Description |
|---|
AbstractAnalyzer() |
| Modifier and Type | Method and Description |
|---|---|
void |
analyze(Dependency dependency,
Engine engine)
Analyzes a given dependency.
|
protected abstract void |
analyzeDependency(Dependency dependency,
Engine engine)
Analyzes a given dependency.
|
void |
close()
The close method does nothing for this Analyzer.
|
protected void |
closeAnalyzer()
Closes a given Analyzer.
|
protected abstract java.lang.String |
getAnalyzerEnabledSettingKey()
Returns the setting key to determine if the analyzer is enabled.
|
protected Settings |
getSettings()
Returns the configured settings.
|
void |
initialize(Settings settings)
Initializes the analyzer with the configured settings.
|
boolean |
isEnabled()
Get the value of enabled.
|
void |
prepare(Engine engine)
Initialize the abstract analyzer.
|
protected void |
prepareAnalyzer(Engine engine)
Prepares a given Analyzer.
|
void |
setEnabled(boolean enabled)
Set the value of enabled.
|
boolean |
supportsParallelProcessing()
The default is to support parallel processing.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnalysisPhase, getNamepublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - new value of enabledprotected Settings getSettings()
public void initialize(Settings settings)
initialize in interface Analyzersettings - the configured settings to usepublic final void prepare(Engine engine) throws InitializationException
prepare in interface Analyzerengine - a reference to the dependency-check engineInitializationException - thrown if there is an exceptionprotected void prepareAnalyzer(Engine engine) throws InitializationException
engine - a reference to the dependency-check engineInitializationException - thrown if there is an exceptionpublic final void analyze(Dependency dependency, Engine engine) throws AnalysisException
analyze in interface Analyzerdependency - the dependency to analyzeengine - the engine scanningAnalysisException - thrown if there is an analysis exceptionprotected abstract void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
dependency - the dependency to analyzeengine - the engine scanningAnalysisException - thrown if there is an analysis exceptionpublic final void close()
throws java.lang.Exception
protected void closeAnalyzer()
throws java.lang.Exception
java.lang.Exception - thrown if there is an exceptionpublic boolean supportsParallelProcessing()
supportsParallelProcessing in interface Analyzerprotected abstract java.lang.String getAnalyzerEnabledSettingKey()
Returns the setting key to determine if the analyzer is enabled.
Copyright© 2012-21 Jeremy Long. All Rights Reserved.