Record Class ConstructTargetTuple

java.lang.Object
java.lang.Record
org.ek9lang.compiler.backend.ConstructTargetTuple
Record Components:
construct - The IR construct to generate code for
relativeFileName - Relative path to source file
compilerFlags - Compiler configuration flags
targetFile - Output file location
moduleTotalCoverageProbeCount - Total probes in module for array sizing
coverageMetadataJson - JSON metadata for line/method/branch coverage (may be null)

public record ConstructTargetTuple(IRConstruct construct, String relativeFileName, CompilerFlags compilerFlags, File targetFile, int moduleTotalCoverageProbeCount, String coverageMetadataJson) extends Record
A given construct from a specific source should be output to the targetFile. Includes module-level coverage probe count and metadata for code generation.
  • Constructor Details

    • ConstructTargetTuple

      public ConstructTargetTuple(IRConstruct construct, String relativeFileName, CompilerFlags compilerFlags, File targetFile, int moduleTotalCoverageProbeCount, String coverageMetadataJson)
      Creates an instance of a ConstructTargetTuple record class.
      Parameters:
      construct - the value for the construct record component
      relativeFileName - the value for the relativeFileName record component
      compilerFlags - the value for the compilerFlags record component
      targetFile - the value for the targetFile record component
      moduleTotalCoverageProbeCount - the value for the moduleTotalCoverageProbeCount record component
      coverageMetadataJson - the value for the coverageMetadataJson record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • construct

      public IRConstruct construct()
      Returns the value of the construct record component.
      Returns:
      the value of the construct record component
    • relativeFileName

      public String relativeFileName()
      Returns the value of the relativeFileName record component.
      Returns:
      the value of the relativeFileName record component
    • compilerFlags

      public CompilerFlags compilerFlags()
      Returns the value of the compilerFlags record component.
      Returns:
      the value of the compilerFlags record component
    • targetFile

      public File targetFile()
      Returns the value of the targetFile record component.
      Returns:
      the value of the targetFile record component
    • moduleTotalCoverageProbeCount

      public int moduleTotalCoverageProbeCount()
      Returns the value of the moduleTotalCoverageProbeCount record component.
      Returns:
      the value of the moduleTotalCoverageProbeCount record component
    • coverageMetadataJson

      public String coverageMetadataJson()
      Returns the value of the coverageMetadataJson record component.
      Returns:
      the value of the coverageMetadataJson record component