Class Project.ModuleUnit

java.lang.Object
de.sormuras.bach.Project.ModuleUnit
Enclosing class:
Project

public static class Project.ModuleUnit
extends java.lang.Object
Java module source unit.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    Project.ModuleInfo info
    Source-based module reference.
    java.nio.file.Path mavenPom
    Path to the associated Maven POM file.
    java.util.List<java.nio.file.Path> resources
    Paths to the resource directories.
    java.util.List<Project.Source> sources
    Paths to the source directories.
  • Constructor Summary

    Constructors 
    Constructor Description
    ModuleUnit​(Project.ModuleInfo info, java.util.List<Project.Source> sources, java.util.List<java.nio.file.Path> resources, java.nio.file.Path mavenPom)  
  • Method Summary

    Modifier and Type Method Description
    boolean isMultiRelease()  
    java.util.Optional<java.nio.file.Path> mavenPom()  
    java.lang.String name()  
    static Project.ModuleUnit of​(java.nio.file.Path path)
    Create default unit for the specified path.
    java.lang.String path()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • info

      public final Project.ModuleInfo info
      Source-based module reference.
    • sources

      public final java.util.List<Project.Source> sources
      Paths to the source directories.
    • resources

      public final java.util.List<java.nio.file.Path> resources
      Paths to the resource directories.
    • mavenPom

      public final java.nio.file.Path mavenPom
      Path to the associated Maven POM file.
  • Constructor Details

  • Method Details

    • of

      public static Project.ModuleUnit of​(java.nio.file.Path path)
      Create default unit for the specified path.
    • isMultiRelease

      public boolean isMultiRelease()
    • name

      public java.lang.String name()
    • path

      public java.lang.String path()
    • mavenPom

      public java.util.Optional<java.nio.file.Path> mavenPom()