Interface ClassAnalyzer
- All Known Implementing Classes:
DefaultClassAnalyzer
public interface ClassAnalyzer
Gets the set of classes contained in a library given either as a jar file or an exploded directory.
- Author:
- Mark Hobson
-
Method Summary
Modifier and TypeMethodDescriptionanalyze.analyze(URL url, ClassesPatterns excludedClasses) analyze.Analyzes a JAR file or directory identified by a local path.analyze(Path path, ClassesPatterns excludedClasses) Analyzes a JAR file or directory identified by a local path, excluding matching classes.
-
Method Details
-
analyze
analyze.
- Parameters:
url- the JAR file or directory to analyze- Returns:
- a
Setobject - Throws:
IOException- if any
-
analyze
Analyzes a JAR file or directory identified by a local path.- Parameters:
path- the JAR file or directory to analyze- Returns:
- the class names found in the source
- Throws:
IOException- if the source cannot be read- Since:
- 1.18.0
-