Class ModuleNameExtractor
java.lang.Object
org.ek9lang.cli.coverage.ModuleNameExtractor
- All Implemented Interfaces:
Function<String,String>, UnaryOperator<String>
Extracts module name from EK9 source file.
Single responsibility: file parsing for module name.
Parses the 'defines module' declaration from the source file.
-
Constructor Summary
ConstructorsConstructorDescriptionModuleNameExtractor(Path sourceDirectory) Create an extractor that resolves paths relative to the given directory. -
Method Summary
-
Constructor Details
-
ModuleNameExtractor
ModuleNameExtractor(Path sourceDirectory) Create an extractor that resolves paths relative to the given directory.- Parameters:
sourceDirectory- The root directory for resolving relative paths
-
-
Method Details
-
apply
-