Record Class ModuleCompiler.Configuration

java.lang.Object
java.lang.Record
com.netflix.module.compile.ModuleCompiler.Configuration
Record Components:
moduleName - the source module name
release - the source and target Java release, or empty for the toolchain default
preview - whether preview features are enabled
moduleVersion - the version recorded in the module descriptor
mainClass - the main class recorded in the module descriptor
runtimeAccess - runtime access requirements recorded in the module descriptor
moduleSources - observable source modules keyed by module name
modulePathEntries - content identities on the compilation module paths
paths - 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 Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • moduleName

      public String moduleName()
      Returns the value of the moduleName record component.
      Returns:
      the value of the moduleName record component
    • release

      public OptionalInt release()
      Returns the value of the release record component.
      Returns:
      the value of the release record component
    • preview

      public boolean preview()
      Returns the value of the preview record component.
      Returns:
      the value of the preview record component
    • moduleVersion

      public Optional<ModuleDescriptor.Version> moduleVersion()
      Returns the value of the moduleVersion record component.
      Returns:
      the value of the moduleVersion record component
    • mainClass

      public Optional<String> mainClass()
      Returns the value of the mainClass record component.
      Returns:
      the value of the mainClass record component
    • runtimeAccess

      public ModuleRuntimeAccessOptions runtimeAccess()
      Returns the value of the runtimeAccess record component.
      Returns:
      the value of the runtimeAccess record component
    • moduleSources

      public Map<String,Path> moduleSources()
      Returns the value of the moduleSources record component.
      Returns:
      the value of the moduleSources record component
    • modulePathEntries

      public List<ModulePathEntry> modulePathEntries()
      Returns the value of the modulePathEntries record component.
      Returns:
      the value of the modulePathEntries record component
    • paths

      Returns the value of the paths record component.
      Returns:
      the value of the paths record component