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 aMainEntryTargetTuplerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompilerFlagsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileHandlingrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoutputDirectoryrecord component.Returns the value of theprogramEntryPointrecord component.final StringtoString()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 aMainEntryTargetTuplerecord class.- Parameters:
programEntryPoint- the value for theprogramEntryPointrecord componentcompilerFlags- the value for thecompilerFlagsrecord componentfileHandling- the value for thefileHandlingrecord componentoutputDirectory- the value for theoutputDirectoryrecord 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 theprogramEntryPointrecord component.- Returns:
- the value of the
programEntryPointrecord component
-
compilerFlags
Returns the value of thecompilerFlagsrecord component.- Returns:
- the value of the
compilerFlagsrecord component
-
fileHandling
Returns the value of thefileHandlingrecord component.- Returns:
- the value of the
fileHandlingrecord component
-
outputDirectory
Returns the value of theoutputDirectoryrecord component.- Returns:
- the value of the
outputDirectoryrecord component
-