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 JavaModuleDescriptor
getModuleDescriptor(java.nio.file.Path modulePath)
Extracts the name from the module-info fileJavaModuleDescriptor
getModuleDescriptor(java.nio.file.Path modulePath, JavaVersion jdkVersion)
Extracts the name from the module-info file(package private) abstract JavaModuleDescriptor
parse(java.io.InputStream in)
-
-
-
Method Detail
-
getModuleDescriptor
public JavaModuleDescriptor getModuleDescriptor(java.nio.file.Path modulePath) throws java.io.IOException
Description copied from interface:ModuleInfoParser
Extracts the name from the module-info file- Specified by:
getModuleDescriptor
in 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:ModuleInfoParser
Extracts the name from the module-info file- Specified by:
getModuleDescriptor
in interfaceModuleInfoParser
- Parameters:
modulePath
- the path to themodule-info.class
jdkVersion
- 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
-
-