Interface ModuleInfoParser

    • Method Detail

      • getModuleDescriptor

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

        JavaModuleDescriptor getModuleDescriptor​(java.nio.file.Path modulePath,
                                                 JavaVersion javaVersion)
                                          throws java.io.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:
        java.io.IOException - when the file could not be parsed