Record Class ModuleCompiler.Options

java.lang.Object
java.lang.Record
com.netflix.module.compile.ModuleCompiler.Options
Record Components:
forceCompilation - compile without reusing a previous output
emitDiagnostics - emit current and retained diagnostics to the listener
verboseOutput - the recipient for javac verbose output, or null
Enclosing class:
ModuleCompiler

public static record ModuleCompiler.Options(boolean forceCompilation, boolean emitDiagnostics, Writer verboseOutput) extends Record
Controls reuse, diagnostic emission, and verbose javac output for one compilation. Diagnostics are always retained in compilation state, even when emission is disabled.
  • Field Details

    • DEFAULT

      public static final ModuleCompiler.Options DEFAULT
      Reuses output and emits diagnostics.
    • SILENT

      public static final ModuleCompiler.Options SILENT
      Reuses output without emitting retained or current diagnostics.
  • Constructor Details

    • Options

      public Options(boolean forceCompilation, boolean emitDiagnostics)
      Creates options without javac verbose output.
    • Options

      public Options(boolean forceCompilation, boolean emitDiagnostics, Writer verboseOutput)
      Creates an instance of a Options record class.
      Parameters:
      forceCompilation - the value for the forceCompilation record component
      emitDiagnostics - the value for the emitDiagnostics record component
      verboseOutput - the value for the verboseOutput record component
  • 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.
    • forceCompilation

      public boolean forceCompilation()
      Returns the value of the forceCompilation record component.
      Returns:
      the value of the forceCompilation record component
    • emitDiagnostics

      public boolean emitDiagnostics()
      Returns the value of the emitDiagnostics record component.
      Returns:
      the value of the emitDiagnostics record component
    • verboseOutput

      public Writer verboseOutput()
      Returns the value of the verboseOutput record component.
      Returns:
      the value of the verboseOutput record component