Class AbstractBinaryModuleInfoParser
- java.lang.Object
-
- org.codehaus.plexus.languages.java.jpms.AbstractBinaryModuleInfoParser
-
- All Implemented Interfaces:
ModuleInfoParser
- Direct Known Subclasses:
BinaryModuleInfoParser
abstract class AbstractBinaryModuleInfoParser extends java.lang.Object implements ModuleInfoParser
-
-
Constructor Summary
Constructors Constructor Description AbstractBinaryModuleInfoParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete 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 jdkVersion)Extracts the name from the module-info file(package private) abstract JavaModuleDescriptorparse(java.io.InputStream in)
-
-
-
Method Detail
-
getModuleDescriptor
public JavaModuleDescriptor getModuleDescriptor(java.nio.file.Path modulePath) throws java.io.IOException
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:
java.io.IOException- when the file could not be parsed
-
getModuleDescriptor
public JavaModuleDescriptor getModuleDescriptor(java.nio.file.Path modulePath, JavaVersion jdkVersion) throws java.io.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:
java.io.IOException- when the file could not be parsed
-
parse
abstract JavaModuleDescriptor parse(java.io.InputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
-