@ThreadSafe public class PythonPackageAnalyzer extends AbstractFileTypeAnalyzer
Modifier and Type | Field and Description |
---|---|
static String |
DEPENDENCY_ECOSYSTEM
A descriptor for the type of dependencies processed or added by this
analyzer.
|
Constructor and Description |
---|
PythonPackageAnalyzer() |
Modifier and Type | Method and Description |
---|---|
protected void |
analyzeDependency(Dependency dependency,
Engine engine)
Analyzes python packages and adds evidence to the dependency.
|
AnalysisPhase |
getAnalysisPhase()
Tell that we are used for information collection.
|
protected String |
getAnalyzerEnabledSettingKey()
Returns the key name for the analyzers enabled setting.
|
protected FileFilter |
getFileFilter()
Returns the FileFilter
|
String |
getName()
Returns the name of the Python Package Analyzer.
|
protected void |
prepareFileTypeAnalyzer(Engine engine)
No-op initializer implementation.
|
accept, getFilesMatched, newHashSet, prepareAnalyzer, setFilesMatched
analyze, close, closeAnalyzer, getSettings, initialize, isEnabled, prepare, setEnabled, supportsParallelProcessing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
analyze, close, initialize, isEnabled, prepare, supportsParallelProcessing
public static final String DEPENDENCY_ECOSYSTEM
public String getName()
public AnalysisPhase getAnalysisPhase()
protected String getAnalyzerEnabledSettingKey()
getAnalyzerEnabledSettingKey
in class AbstractAnalyzer
protected FileFilter getFileFilter()
getFileFilter
in class AbstractFileTypeAnalyzer
protected void prepareFileTypeAnalyzer(Engine engine) throws InitializationException
prepareFileTypeAnalyzer
in class AbstractFileTypeAnalyzer
engine
- a reference to the dependency-check engineInitializationException
- never thrownprotected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
analyzeDependency
in class AbstractAnalyzer
dependency
- the dependency being analyzedengine
- the engine being used to perform the scanAnalysisException
- thrown if there is an unrecoverable error
analyzing the dependencyCopyright © 2012–2018 OWASP. All rights reserved.