Class ConsistencyChecker
java.lang.Object
ca.mcscert.jpipe.compiler.model.Transformation<Unit,Unit>
ca.mcscert.jpipe.compiler.model.Checker<Unit>
ca.mcscert.jpipe.compiler.steps.checkers.ConsistencyChecker
Pipeline step that checks all models in a
Unit for structural
consistency. Delegates rule evaluation to ConsistencyValidator and
maps each violation to a non-fatal ERROR diagnostic, enriched with source
location from the unit's location registry.-
Nested Class Summary
Nested classes/interfaces inherited from class Checker
Checker.Check<I>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 voidcheck(Unit unit, CompilationContext ctx) Perform the check.
-
Constructor Details
-
ConsistencyChecker
public ConsistencyChecker()
-
-
Method Details
-
check
Description copied from class:CheckerPerform the check. Must not modifyinput. Non-fatal issues should be reported viactx.error()rather than thrown; throw (or callctx.fatal()) only for unrecoverable failures.
-