Package org.tentackle.maven.plugin.jlink
Class ModularArtifact
java.lang.Object
org.tentackle.maven.plugin.jlink.ModularArtifact
- All Implemented Interfaces:
Comparable<ModularArtifact>
Artifact with module information.
-
Constructor Summary
ConstructorsConstructorDescriptionModularArtifact(org.apache.maven.artifact.Artifact artifact, org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor moduleDescriptor) Creates a modular artifact. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanorg.apache.maven.artifact.ArtifactGets the maven artifact.getFile()Gets the artifact's file.Gets the filename of the artifact.org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptorGets the JPMS module descriptor.Gets the module name.getPath()Gets the path to the artifact's jar file.inthashCode()toString()
-
Constructor Details
-
ModularArtifact
public ModularArtifact(org.apache.maven.artifact.Artifact artifact, org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor moduleDescriptor) Creates a modular artifact.- Parameters:
artifact- the maven artifactmoduleDescriptor- the JPMS module descriptor
-
-
Method Details
-
getArtifact
public org.apache.maven.artifact.Artifact getArtifact()Gets the maven artifact.- Returns:
- the artifact
-
getModuleDescriptor
public org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor getModuleDescriptor()Gets the JPMS module descriptor.- Returns:
- the module descriptor
-
getModuleName
Gets the module name.- Returns:
- the module name, never null
-
toString
-
getFile
Gets the artifact's file.- Returns:
- the file
-
getFileName
Gets the filename of the artifact.- Returns:
- the name of the jar file
-
getPath
Gets the path to the artifact's jar file.- Returns:
- the path
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<ModularArtifact>
-