Package org.ek9lang.cli
Record Class CompilationContext
java.lang.Object
java.lang.Record
org.ek9lang.cli.CompilationContext
record CompilationContext(CommandLineDetails commandLine, Compiler compiler, FileCache sourceFileCache, boolean muteReportedErrors)
extends Record
A context to hold all the essential objects needed for compiling.
-
Constructor Summary
ConstructorDescriptionCompilationContext
(CommandLineDetails commandLine, Compiler compiler, FileCache sourceFileCache, boolean muteReportedErrors) Creates an instance of aCompilationContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommandLine
record component.compiler()
Returns the value of thecompiler
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of themuteReportedErrors
record component.Returns the value of thesourceFileCache
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CompilationContext
CompilationContext(CommandLineDetails commandLine, Compiler compiler, FileCache sourceFileCache, boolean muteReportedErrors) Creates an instance of aCompilationContext
record class.- Parameters:
commandLine
- the value for thecommandLine
record componentcompiler
- the value for thecompiler
record componentsourceFileCache
- the value for thesourceFileCache
record componentmuteReportedErrors
- the value for themuteReportedErrors
record component
-
-
Method Details
-
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. -
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. -
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 '=='. -
commandLine
Returns the value of thecommandLine
record component.- Returns:
- the value of the
commandLine
record component
-
compiler
Returns the value of thecompiler
record component.- Returns:
- the value of the
compiler
record component
-
sourceFileCache
Returns the value of thesourceFileCache
record component.- Returns:
- the value of the
sourceFileCache
record component
-
muteReportedErrors
public boolean muteReportedErrors()Returns the value of themuteReportedErrors
record component.- Returns:
- the value of the
muteReportedErrors
record component
-