Class ModuleGrouper
java.lang.Object
org.ek9lang.cli.coverage.ModuleGrouper
- All Implemented Interfaces:
Function<List<ModuleInfo>, Map<String, List<ModuleInfo>>>
final class ModuleGrouper
extends Object
implements Function<List<ModuleInfo>, Map<String, List<ModuleInfo>>>
Groups modules by their top-level package name.
Single responsibility: module hierarchy grouping.
Modules are grouped by the first segment of their package name:
com.example.foo→ group "com"org.ek9.lang→ group "org"main(no dot) → group "(root)"
-
Constructor Details
-
ModuleGrouper
ModuleGrouper()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<List<ModuleInfo>, Map<String, List<ModuleInfo>>>
-