Interface ModuleInfoParser
- All Known Implementing Classes:
AbstractBinaryModuleInfoParser
,AsmModuleInfoParser
,BinaryModuleInfoParser
interface ModuleInfoParser
Extract information from the module-info file
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiongetModuleDescriptor
(Path modulePath) Extracts the name from the module-info filegetModuleDescriptor
(Path modulePath, JavaVersion javaVersion) Extracts the name from the module-info file
-
Method Details
-
getModuleDescriptor
Extracts the name from the module-info file- Parameters:
modulePath
- the path to themodule-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 themodule-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
-