Class Project.Source

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

public static class Project.Source
extends java.lang.Object
Single source path with optional release directive.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  Project.Source.Flag
    Source-specific flag.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.util.Set<Project.Source.Flag> flags
    Optional flags.
    java.nio.file.Path path
    Source path.
    int release
    Java feature release target number, with zero indicating the current runtime release.
  • Constructor Summary

    Constructors 
    Constructor Description
    Source​(java.nio.file.Path path, int release, java.util.Set<Project.Source.Flag> flags)  
  • Method Summary

    Modifier and Type Method Description
    boolean isTargeted()  
    boolean isVersioned()  
    static Project.Source of​(java.nio.file.Path path)
    Create default non-targeted source for the specified path.
    static Project.Source of​(java.nio.file.Path path, int release, Project.Source.Flag... flags)
    Create targeted source for the specified path, the release, and optional flags.

    Methods inherited from class java.lang.Object

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

    • path

      public final java.nio.file.Path path
      Source path.
    • release

      public final int release
      Java feature release target number, with zero indicating the current runtime release.
    • flags

      public final java.util.Set<Project.Source.Flag> flags
      Optional flags.
  • Constructor Details

  • Method Details

    • of

      public static Project.Source of​(java.nio.file.Path path)
      Create default non-targeted source for the specified path.
    • of

      public static Project.Source of​(java.nio.file.Path path, int release, Project.Source.Flag... flags)
      Create targeted source for the specified path, the release, and optional flags.
    • isTargeted

      public boolean isTargeted()
    • isVersioned

      public boolean isVersioned()