Interface ModuleInfoParser

All Known Implementing Classes:
AbstractBinaryModuleInfoParser, AsmModuleInfoParser, BinaryModuleInfoParser

interface ModuleInfoParser
Extract information from the module-info file
Since:
1.0.0
  • Method Details

    • getModuleDescriptor

      JavaModuleDescriptor getModuleDescriptor(Path modulePath) throws IOException
      Extracts the name from the module-info file
      Parameters:
      modulePath - the path to the module-info.class
      Returns:
      the module descriptor
      Throws:
      IOException - when the file could not be parsed
    • getModuleDescriptor

      JavaModuleDescriptor getModuleDescriptor(Path modulePath, JavaVersion javaVersion) throws IOException
      Extracts the name from the module-info file
      Parameters:
      modulePath - the path to the module-info.class
      javaVersion - the java version in case of a multirelease jar
      Returns:
      the module descriptor
      Throws:
      IOException - when the file could not be parsed