Class AbstractBinaryModuleInfoParser
java.lang.Object
org.codehaus.plexus.languages.java.jpms.AbstractBinaryModuleInfoParser
- All Implemented Interfaces:
ModuleInfoParser
- Direct Known Subclasses:
AsmModuleInfoParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetModuleDescriptor(Path modulePath) Extracts the name from the module-info filegetModuleDescriptor(Path modulePath, JavaVersion jdkVersion) Extracts the name from the module-info file(package private) abstract JavaModuleDescriptorparse(InputStream in)
-
Constructor Details
-
AbstractBinaryModuleInfoParser
AbstractBinaryModuleInfoParser()
-
-
Method Details
-
getModuleDescriptor
Description copied from interface:ModuleInfoParserExtracts the name from the module-info file- Specified by:
getModuleDescriptorin interfaceModuleInfoParser- Parameters:
modulePath- the path to themodule-info.class- Returns:
- the module descriptor
- Throws:
IOException- when the file could not be parsed
-
getModuleDescriptor
public JavaModuleDescriptor getModuleDescriptor(Path modulePath, JavaVersion jdkVersion) throws IOException Description copied from interface:ModuleInfoParserExtracts the name from the module-info file- Specified by:
getModuleDescriptorin interfaceModuleInfoParser- Parameters:
modulePath- the path to themodule-info.classjdkVersion- the java version in case of a multirelease jar- Returns:
- the module descriptor
- Throws:
IOException- when the file could not be parsed
-
parse
- Throws:
IOException
-