Record Class ModuleCompiler.Options
java.lang.Object
java.lang.Record
com.netflix.module.compile.ModuleCompiler.Options
- Record Components:
forceCompilation- compile without reusing a previous outputemitDiagnostics- emit current and retained diagnostics to the listenerverboseOutput- the recipient for javac verbose output, ornull
- 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 Summary
FieldsModifier and TypeFieldDescriptionstatic final ModuleCompiler.OptionsReuses output and emits diagnostics.static final ModuleCompiler.OptionsReuses output without emitting retained or current diagnostics. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theemitDiagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforceCompilationrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theverboseOutputrecord component.
-
Field Details
-
DEFAULT
Reuses output and emits diagnostics. -
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
Creates an instance of aOptionsrecord class.- Parameters:
forceCompilation- the value for theforceCompilationrecord componentemitDiagnostics- the value for theemitDiagnosticsrecord componentverboseOutput- the value for theverboseOutputrecord component
-
-
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. -
forceCompilation
public boolean forceCompilation()Returns the value of theforceCompilationrecord component.- Returns:
- the value of the
forceCompilationrecord component
-
emitDiagnostics
public boolean emitDiagnostics()Returns the value of theemitDiagnosticsrecord component.- Returns:
- the value of the
emitDiagnosticsrecord component
-
verboseOutput
Returns the value of theverboseOutputrecord component.- Returns:
- the value of the
verboseOutputrecord component
-