Class AcceptableCouplingOrError
java.lang.Object
org.ek9lang.compiler.phase5.AcceptableCouplingOrError
- All Implemented Interfaces:
Consumer<org.antlr.v4.runtime.tree.ParseTree>
class AcceptableCouplingOrError
extends Object
implements Consumer<org.antlr.v4.runtime.tree.ParseTree>
Checks efferent coupling (Ce) against thresholds and emits errors if exceeded.
Based on CBO (Coupling Between Objects) from Chidamber & Kemerer (1994).
Thresholds are calibrated from analysis of the EK9 compiler source code and live in
MetricLimits.CONSTRUCT_COUPLING — THE single source of truth, shared with the MCP/IDE
enquiry layer. Do not restate the per-genus values here; they drift.
-
Constructor Summary
ConstructorsConstructorDescriptionAcceptableCouplingOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener, CouplingTracker couplingTracker) -
Method Summary
-
Constructor Details
-
AcceptableCouplingOrError
AcceptableCouplingOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener, CouplingTracker couplingTracker)
-
-
Method Details
-
accept
-