Class DiagnosticReport
java.lang.Object
ca.mcscert.jpipe.compiler.model.Transformation<Unit,String>
ca.mcscert.jpipe.compiler.steps.transformations.DiagnosticReport
Produces a human-readable diagnostic report from the compiled
Unit
and the CompilationContext.
The report has four sections:
- Diagnostics — errors from compilation.
- Action Statistics — command counts and deferral count.
- Model Summary — per model: type, parent, element counts.
- Symbol Table — full location registry.
-
Nested Class Summary
Nested classes/interfaces inherited from class Transformation
Transformation.Step<I,O> -
Field Summary
Fields inherited from class Transformation
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringrun(Unit input, CompilationContext ctx) Business logic of this step.
-
Constructor Details
-
DiagnosticReport
public DiagnosticReport()
-
-
Method Details
-
run
Description copied from class:TransformationBusiness logic of this step. Must not returnnull; may throw any exception. Usectxto report non-fatal diagnostics or inspect previously accumulated errors.- Specified by:
runin classTransformation<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.
-