Class DiagnosticReport

java.lang.Object
ca.mcscert.jpipe.compiler.model.Transformation<Unit,String>
ca.mcscert.jpipe.compiler.steps.transformations.DiagnosticReport

public final class DiagnosticReport extends Transformation<Unit,String>
Produces a human-readable diagnostic report from the compiled Unit and the CompilationContext.

The report has four sections:

  1. Diagnostics — errors from compilation.
  2. Action Statistics — command counts and deferral count.
  3. Model Summary — per model: type, parent, element counts.
  4. Symbol Table — full location registry.
  • Constructor Details

    • DiagnosticReport

      public DiagnosticReport()
  • Method Details

    • run

      protected String run(Unit input, CompilationContext ctx)
      Description copied from class: Transformation
      Business logic of this step. Must not return null; may throw any exception. Use ctx to report non-fatal diagnostics or inspect previously accumulated errors.
      Specified by:
      run in class Transformation<Unit,String>
      Parameters:
      input - the value produced by the previous step.
      ctx - compilation context carrying the source path and diagnostic bag.
      Returns:
      the transformed value — never null.