Record Class MainEntryTargetTuple
java.lang.Object
java.lang.Record
org.ek9lang.compiler.backend.MainEntryTargetTuple
public record MainEntryTargetTuple(ProgramEntryPointInstr programEntryPoint, CompilerFlags compilerFlags, FileHandling fileHandling, File outputDirectory)
extends Record
Contains all the information needed for target-specific visitors to generate main entry points.
Each visitor can determine its own file naming conventions and output handling.
-
Constructor Summary
ConstructorsConstructorDescriptionMainEntryTargetTuple
(ProgramEntryPointInstr programEntryPoint, CompilerFlags compilerFlags, FileHandling fileHandling, File outputDirectory) Creates an instance of aMainEntryTargetTuple
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompilerFlags
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefileHandling
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theoutputDirectory
record component.Returns the value of theprogramEntryPoint
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MainEntryTargetTuple
public MainEntryTargetTuple(ProgramEntryPointInstr programEntryPoint, CompilerFlags compilerFlags, FileHandling fileHandling, File outputDirectory) Creates an instance of aMainEntryTargetTuple
record class.- Parameters:
programEntryPoint
- the value for theprogramEntryPoint
record componentcompilerFlags
- the value for thecompilerFlags
record componentfileHandling
- the value for thefileHandling
record componentoutputDirectory
- the value for theoutputDirectory
record 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)
. -
programEntryPoint
Returns the value of theprogramEntryPoint
record component.- Returns:
- the value of the
programEntryPoint
record component
-
compilerFlags
Returns the value of thecompilerFlags
record component.- Returns:
- the value of the
compilerFlags
record component
-
fileHandling
Returns the value of thefileHandling
record component.- Returns:
- the value of the
fileHandling
record component
-
outputDirectory
Returns the value of theoutputDirectory
record component.- Returns:
- the value of the
outputDirectory
record component
-