Object ModuleMapSource

  • All Implemented Interfaces:

    
    public class ModuleMapSource
    
                        

    Parser for the on-disk ModuleMap.kt static snapshot.

    validate repo-consistency compares the static ModuleMap snapshot against the live pom graph. The loaded ModuleMap class can be STALE (it comes from the running backend's build, which may predate ModuleMap.kt edits — e.g. right after scaffoldToDir synced a new module). Parsing the source file instead anchors the comparison to what will actually be compiled next.

    Pure string parsing of the generated file format — no Kotlin compiler, no I/O. Returns null when the file does not match the expected shape (callers then fall back to the loaded class and warn).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class ModuleMapSource.Parsed

      The parsed static snapshot.

    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final ModuleMapSource.Parsed parse(String source) Parse source (the text of ModuleMap.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • parse

         final ModuleMapSource.Parsed parse(String source)

        Parse source (the text of ModuleMap.kt) into a Parsed snapshot.

        Returns:

        the parsed snapshot, or null when the expected structure (MODULES block + DEPENDENTS block ending with \n )) is absent