Class ModularArtifact

  • All Implemented Interfaces:
    java.lang.Comparable<ModularArtifact>

    public class ModularArtifact
    extends java.lang.Object
    implements java.lang.Comparable<ModularArtifact>
    Artifact with module information.
    • Constructor Summary

      Constructors 
      Constructor Description
      ModularArtifact​(org.apache.maven.artifact.Artifact artifact, org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor moduleDescriptor)
      Creates a modular artifact.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(ModularArtifact o)  
      boolean equals​(java.lang.Object o)  
      org.apache.maven.artifact.Artifact getArtifact()
      Gets the maven artifact.
      java.io.File getFile()
      Gets the artifact's file.
      java.lang.String getFileName()
      Gets the filename of the artifact.
      org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor getModuleDescriptor()
      Gets the JPMS module descriptor.
      java.lang.String getModuleName()
      Gets the module name.
      java.lang.String getPath()
      Gets the path to the artifact's jar file.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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 artifact
        moduleDescriptor - the JPMS module descriptor
    • Method Detail

      • 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

        public java.lang.String getModuleName()
        Gets the module name.
        Returns:
        the module name, never null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getFile

        public java.io.File getFile()
        Gets the artifact's file.
        Returns:
        the file
      • getFileName

        public java.lang.String getFileName()
        Gets the filename of the artifact.
        Returns:
        the name of the jar file
      • getPath

        public java.lang.String getPath()
        Gets the path to the artifact's jar file.
        Returns:
        the path
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object