Interface DependencyAnalyzer
- All Known Implementing Classes:
ASMDependencyAnalyzer
public interface DependencyAnalyzer
Gets the set of classes referenced by a library given either as a jar file or an exploded directory.
- Author:
- Mark Hobson
-
Method Summary
Modifier and TypeMethodDescriptionanalyze.analyze(URL url, ClassesPatterns excludeClasses) analyze.Analyzes a JAR file or directory identified by a local path.analyze(Path path, ClassesPatterns excludeClasses) Analyzes a JAR file or directory identified by a local path, excluding matching classes.analyzeUsages(URL url, ClassesPatterns excludeClasses) analyzeUsages.default Set<DependencyUsage>analyzeUsages(Path path, ClassesPatterns excludeClasses) Returns referenced classes paired with their declaring classes for a local path.
-
Method Details
-
analyze
analyze.
- Parameters:
url- the JAR file or directory to analyze- Returns:
- the set of class names referenced by the library
- Throws:
IOException- if an error occurs reading a JAR or .class file
-
analyze
Analyzes a JAR file or directory identified by a local path.- Parameters:
path- the JAR file or directory to analyze- Returns:
- the set of class names referenced by the library
- Throws:
IOException- if an error occurs reading a JAR or .class file- Since:
- 1.18.0
-