java.lang.Object
de.sormuras.bach.Project.Realm
- Enclosing class:
- Project
public static class Project.Realm
extends java.lang.Object
Main- and test realms.
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringmoduleSourcePathModule source path specifies where to find input source files for multiple modules.java.lang.StringnameName of the realm.booleanpreviewEnable preview features.java.util.List<Project.Realm>realmsList of required realms.intreleaseJava feature release target number, with zero indicating the current runtime release.Project.ToolArgumentstoolArgumentsOption values passed to various tools.java.util.List<Project.ModuleUnit>unitsMap of all declared module source unit. -
Constructor Summary
Constructors Constructor Description Realm(java.lang.String name, boolean preview, int release, java.lang.String moduleSourcePath, Project.ToolArguments toolArguments, java.util.List<Project.ModuleUnit> units, Project.Realm... realms) -
Method Summary
Modifier and Type Method Description static Project.Realmof(java.lang.String name, Project.ModuleUnit unit, Project.Realm... realms)Single module realm factory.static Project.Realmof(java.lang.String name, java.util.List<Project.ModuleUnit> units, Project.Realm... realms)Multi-module realm factory.java.util.List<Project.ModuleUnit>units(java.util.function.Predicate<Project.ModuleUnit> filter)
-
Field Details
-
name
public final java.lang.String nameName of the realm. -
preview
public final boolean previewEnable preview features. -
release
public final int releaseJava feature release target number, with zero indicating the current runtime release. -
moduleSourcePath
public final java.lang.String moduleSourcePathModule source path specifies where to find input source files for multiple modules. -
toolArguments
Option values passed to various tools. -
units
Map of all declared module source unit. -
realms
List of required realms.
-
-
Constructor Details
-
Realm
public Realm(java.lang.String name, boolean preview, int release, java.lang.String moduleSourcePath, Project.ToolArguments toolArguments, java.util.List<Project.ModuleUnit> units, Project.Realm... realms)
-
-
Method Details
-
of
public static Project.Realm of(java.lang.String name, Project.ModuleUnit unit, Project.Realm... realms)Single module realm factory. -
of
public static Project.Realm of(java.lang.String name, java.util.List<Project.ModuleUnit> units, Project.Realm... realms)Multi-module realm factory. -
units
public java.util.List<Project.ModuleUnit> units(java.util.function.Predicate<Project.ModuleUnit> filter)
-