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 Details

    • analyze

      default Set<String> analyze(URL url) throws IOException

      analyze.

      Parameters:
      url - the JAR file or directory to analyze
      Returns:
      a Set object
      Throws:
      IOException - if any
    • analyze

      Set<String> analyze(URL url, ClassesPatterns excludedClasses) throws IOException

      analyze.

      Parameters:
      url - the JAR file or directory to analyze
      excludedClasses - patterns of classes to exclude
      Returns:
      a Set object
      Throws:
      IOException - if any
    • analyze

      default Set<String> analyze(Path path) throws IOException
      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
    • analyze

      default Set<String> analyze(Path path, ClassesPatterns excludedClasses) throws IOException
      Analyzes a JAR file or directory identified by a local path, excluding matching classes.
      Parameters:
      path - the JAR file or directory to analyze
      excludedClasses - patterns of classes to exclude
      Returns:
      the class names found in the source
      Throws:
      IOException - if the source cannot be read
      Since:
      1.18.0