Record Class ConstructTargetTuple
java.lang.Object
java.lang.Record
org.ek9lang.compiler.backend.ConstructTargetTuple
- Record Components:
construct- The IR construct to generate code forrelativeFileName- Relative path to source filecompilerFlags- Compiler configuration flagstargetFile- Output file locationmoduleTotalCoverageProbeCount- Total probes in module for array sizingcoverageMetadataJson- 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 Summary
ConstructorsConstructorDescriptionConstructTargetTuple(IRConstruct construct, String relativeFileName, CompilerFlags compilerFlags, File targetFile, int moduleTotalCoverageProbeCount, String coverageMetadataJson) Creates an instance of aConstructTargetTuplerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompilerFlagsrecord component.Returns the value of theconstructrecord component.Returns the value of thecoverageMetadataJsonrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themoduleTotalCoverageProbeCountrecord component.Returns the value of therelativeFileNamerecord component.Returns the value of thetargetFilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConstructTargetTuple
public ConstructTargetTuple(IRConstruct construct, String relativeFileName, CompilerFlags compilerFlags, File targetFile, int moduleTotalCoverageProbeCount, String coverageMetadataJson) Creates an instance of aConstructTargetTuplerecord class.- Parameters:
construct- the value for theconstructrecord componentrelativeFileName- the value for therelativeFileNamerecord componentcompilerFlags- the value for thecompilerFlagsrecord componenttargetFile- the value for thetargetFilerecord componentmoduleTotalCoverageProbeCount- the value for themoduleTotalCoverageProbeCountrecord componentcoverageMetadataJson- the value for thecoverageMetadataJsonrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
construct
-
relativeFileName
Returns the value of therelativeFileNamerecord component.- Returns:
- the value of the
relativeFileNamerecord component
-
compilerFlags
Returns the value of thecompilerFlagsrecord component.- Returns:
- the value of the
compilerFlagsrecord component
-
targetFile
Returns the value of thetargetFilerecord component.- Returns:
- the value of the
targetFilerecord component
-
moduleTotalCoverageProbeCount
public int moduleTotalCoverageProbeCount()Returns the value of themoduleTotalCoverageProbeCountrecord component.- Returns:
- the value of the
moduleTotalCoverageProbeCountrecord component
-
coverageMetadataJson
Returns the value of thecoverageMetadataJsonrecord component.- Returns:
- the value of the
coverageMetadataJsonrecord component
-