Record Class ModuleCompiler.Configuration
java.lang.Object
java.lang.Record
com.netflix.module.compile.ModuleCompiler.Configuration
- Record Components:
moduleName- the source module namerelease- the source and target Java release, or empty for the toolchain defaultpreview- whether preview features are enabledmoduleVersion- the version recorded in the module descriptormainClass- the main class recorded in the module descriptorruntimeAccess- runtime access requirements recorded in the module descriptormoduleSources- observable source modules keyed by module namemodulePathEntries- content identities on the compilation module pathspaths- the resolver for module-path entry content
- Enclosing class:
ModuleCompiler
public static record ModuleCompiler.Configuration(String moduleName, OptionalInt release, boolean preview, Optional<ModuleDescriptor.Version> moduleVersion, Optional<String> mainClass, ModuleRuntimeAccessOptions runtimeAccess, Map<String,Path> moduleSources, List<ModulePathEntry> modulePathEntries, ModuleCompiler.ModulePathResolver paths)
extends Record
Immutable inputs affecting compilation and output reuse.
-
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(String moduleName, OptionalInt release, boolean preview, Optional<ModuleDescriptor.Version> moduleVersion, ModuleRuntimeAccessOptions runtimeAccess, List<ModulePathEntry> modulePathEntries, ModuleCompiler.ModulePathResolver paths) Creates a configuration without a main class or additional observable sources.Configuration(String moduleName, OptionalInt release, boolean preview, Optional<ModuleDescriptor.Version> moduleVersion, Optional<String> mainClass, ModuleRuntimeAccessOptions runtimeAccess, List<ModulePathEntry> modulePathEntries, ModuleCompiler.ModulePathResolver paths) Creates a configuration without additional observable source modules.Configuration(String moduleName, OptionalInt release, boolean preview, Optional<ModuleDescriptor.Version> moduleVersion, Optional<String> mainClass, ModuleRuntimeAccessOptions runtimeAccess, Map<String, Path> moduleSources, List<ModulePathEntry> modulePathEntries, ModuleCompiler.ModulePathResolver paths) Validates, normalizes, and creates a compilation configuration. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themainClassrecord component.Returns the value of themoduleNamerecord component.Returns the value of themodulePathEntriesrecord component.Returns the value of themoduleSourcesrecord component.Returns the value of themoduleVersionrecord component.paths()Returns the value of thepathsrecord component.booleanpreview()Returns the value of thepreviewrecord component.release()Returns the value of thereleaserecord component.Returns the value of theruntimeAccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Configuration
public Configuration(String moduleName, OptionalInt release, boolean preview, Optional<ModuleDescriptor.Version> moduleVersion, Optional<String> mainClass, ModuleRuntimeAccessOptions runtimeAccess, List<ModulePathEntry> modulePathEntries, ModuleCompiler.ModulePathResolver paths) Creates a configuration without additional observable source modules.- Parameters:
moduleName- the source module namerelease- the source and target Java releasepreview- whether preview features are enabledmoduleVersion- the version recorded in the module descriptormainClass- the main class recorded in the module descriptorruntimeAccess- runtime access requirements to recordmodulePathEntries- content identities on the compilation module pathspaths- the resolver for module-path entry content
-
Configuration
public Configuration(String moduleName, OptionalInt release, boolean preview, Optional<ModuleDescriptor.Version> moduleVersion, ModuleRuntimeAccessOptions runtimeAccess, List<ModulePathEntry> modulePathEntries, ModuleCompiler.ModulePathResolver paths) Creates a configuration without a main class or additional observable sources.- Parameters:
moduleName- the source module namerelease- the source and target Java releasepreview- whether preview features are enabledmoduleVersion- the version recorded in the module descriptorruntimeAccess- runtime access requirements to recordmodulePathEntries- content identities on the compilation module pathspaths- the resolver for module-path entry content
-
Configuration
public Configuration(String moduleName, OptionalInt release, boolean preview, Optional<ModuleDescriptor.Version> moduleVersion, Optional<String> mainClass, ModuleRuntimeAccessOptions runtimeAccess, Map<String, Path> moduleSources, List<ModulePathEntry> modulePathEntries, ModuleCompiler.ModulePathResolver paths) Validates, normalizes, and creates a compilation configuration.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
moduleName
Returns the value of themoduleNamerecord component.- Returns:
- the value of the
moduleNamerecord component
-
release
-
preview
-
moduleVersion
Returns the value of themoduleVersionrecord component.- Returns:
- the value of the
moduleVersionrecord component
-
mainClass
-
runtimeAccess
Returns the value of theruntimeAccessrecord component.- Returns:
- the value of the
runtimeAccessrecord component
-
moduleSources
Returns the value of themoduleSourcesrecord component.- Returns:
- the value of the
moduleSourcesrecord component
-
modulePathEntries
Returns the value of themodulePathEntriesrecord component.- Returns:
- the value of the
modulePathEntriesrecord component
-
paths
-