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
typeHierarchy - Map of JVM type names to their superclass JVM type names for proper stack frame computation in Ek9ClassWriter
sink - Where the generated bytes go. The generators emit bytes and a name; the destination is a policy - file per construct, straight into the jar, or held in memory for LTO. See ConstructOutputSink.

public record ConstructTargetTuple(IRConstruct construct, String relativeFileName, CompilerFlags compilerFlags, File targetFile, int moduleTotalCoverageProbeCount, Map<String,String> typeHierarchy, ConstructOutputSink sink) extends Record
A given construct from a specific source should be output to the targetFile. Includes module-level coverage probe count for code generation.

Coverage/profiling metadata JSON is deliberately NOT carried here: it is no longer embedded in the compiled artifact and is registered parent-side from the IRModule instead (see InstrumentationMetadataRegistrar).

  • Constructor Details

  • 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
    • typeHierarchy

      public Map<String,String> typeHierarchy()
      Returns the value of the typeHierarchy record component.
      Returns:
      the value of the typeHierarchy record component
    • sink

      public ConstructOutputSink sink()
      Returns the value of the sink record component.
      Returns:
      the value of the sink record component