Class BootstrapArchive

java.lang.Object
org.ek9lang.compiler.BootstrapArchive

public final class BootstrapArchive extends Object
THE bootstrap archive: the serialised CompilableProgram of the EK9 built-in types, written into compiler-main's own classes when it is built (BootstrapArchiveWriter, at process-classes), so it ships inside every compiler jar and is always made from exactly the classes that read it - no key, nothing to go stale (incremental assessment I2, DI-3: the bootstrap ships in the installation; nothing writes a shared cache at compile time). Deserialising it takes about 0.4 s against about 1.5 s for LiveBootstrap. Hold one.
  • Field Details

  • Constructor Details

    • BootstrapArchive

      public BootstrapArchive()
  • Method Details

    • read

      public Optional<byte[]> read()
      The archive's bytes, or empty when these classes carry none (a build that skipped the writer).