|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.owasp.dependencycheck.analyzer.AbstractAnalyzer
org.owasp.dependencycheck.analyzer.JavaScriptAnalyzer
public class JavaScriptAnalyzer
Used to load a JAR file and collect information that can be used to determine the associated CPE.
Constructor Summary | |
---|---|
JavaScriptAnalyzer()
|
Method Summary | |
---|---|
void |
analyze(Dependency dependency,
Engine engine)
Loads a specified JAR file and collects information from the manifest and checksums to identify the correct CPE information. |
void |
close()
The close method does nothing for this Analyzer. |
AnalysisPhase |
getAnalysisPhase()
Returns the phase that the analyzer is intended to run in. |
String |
getName()
Returns the name of the analyzer. |
Set<String> |
getSupportedExtensions()
Returns a list of file EXTENSIONS supported by this analyzer. |
void |
initialize()
The initialize method does nothing for this Analyzer. |
boolean |
supportsExtension(String extension)
Returns whether or not this analyzer can process the given extension. |
Methods inherited from class org.owasp.dependencycheck.analyzer.AbstractAnalyzer |
---|
newHashSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaScriptAnalyzer()
Method Detail |
---|
public Set<String> getSupportedExtensions()
getSupportedExtensions
in interface Analyzer
public String getName()
getName
in interface Analyzer
public boolean supportsExtension(String extension)
supportsExtension
in interface Analyzer
extension
- the file extension to test for support.
public AnalysisPhase getAnalysisPhase()
getAnalysisPhase
in interface Analyzer
public void analyze(Dependency dependency, Engine engine) throws AnalysisException
analyze
in interface Analyzer
dependency
- the dependency to analyze.engine
- the engine that is scanning the dependencies
AnalysisException
- is thrown if there is an error reading the JAR
file.public void initialize() throws Exception
initialize
in interface Analyzer
initialize
in class AbstractAnalyzer
Exception
- thrown if there is an exceptionpublic void close() throws Exception
close
in interface Analyzer
close
in class AbstractAnalyzer
Exception
- thrown if there is an exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |