Interface ModuleInfoParser
-
- All Known Implementing Classes:
AbstractBinaryModuleInfoParser,BinaryModuleInfoParser
interface ModuleInfoParserExtract information from the module-info file- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JavaModuleDescriptorgetModuleDescriptor(java.nio.file.Path modulePath)Extracts the name from the module-info fileJavaModuleDescriptorgetModuleDescriptor(java.nio.file.Path modulePath, JavaVersion javaVersion)Extracts the name from the module-info file
-
-
-
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 themodule-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 themodule-info.classjavaVersion- the java version in case of a multirelease jar- Returns:
- the module descriptor
- Throws:
java.io.IOException- when the file could not be parsed
-
-