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
ConstructorsConstructorDescriptionCompilationEvent(CompilationPhase phase, ParsedModule parsedModule, CompilableSource source) Creates an instance of aCompilationEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparsedModulerecord component.phase()Returns the value of thephaserecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompilationEvent
Creates an instance of aCompilationEventrecord class.- Parameters:
phase- the value for thephaserecord componentparsedModule- the value for theparsedModulerecord componentsource- the value for thesourcerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
phase
-
parsedModule
Returns the value of theparsedModulerecord component.- Returns:
- the value of the
parsedModulerecord component
-
source
-