Package org.ek9lang.compiler.common
Record Class CompilationEvent
java.lang.Object
java.lang.Record
org.ek9lang.compiler.common.CompilationEvent
- Record Components:
phase
- - The phase of the compilation that has just been completes for a source file.parsedModule
- - The parsedModule where that parsed sources symbols will have been recorded.source
- The related source that has just been processed.
public record CompilationEvent(CompilationPhase phase, ParsedModule parsedModule, CompilableSource source)
extends Record
As and when sources are processed during each phase of the compilation.
One of these events will be emitted.
-
Constructor Summary
ConstructorDescriptionCompilationEvent
(CompilationPhase phase, ParsedModule parsedModule, CompilableSource source) Creates an instance of aCompilationEvent
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theparsedModule
record component.phase()
Returns the value of thephase
record component.source()
Returns the value of thesource
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CompilationEvent
Creates an instance of aCompilationEvent
record class.- Parameters:
phase
- the value for thephase
record componentparsedModule
- the value for theparsedModule
record componentsource
- the value for thesource
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
phase
Returns the value of thephase
record component.- Returns:
- the value of the
phase
record component
-
parsedModule
Returns the value of theparsedModule
record component.- Returns:
- the value of the
parsedModule
record component
-
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-