Class DeSerializer

java.lang.Object
org.ek9lang.compiler.DeSerializer
All Implemented Interfaces:
Function<byte[],SharedThreadContext<CompilableProgram>>

public class DeSerializer extends Object implements Function<byte[],SharedThreadContext<CompilableProgram>>
De-Serializes a byte array back to compilable program. Note that some specific transient data will not be reconstituted. But the compilable program will have all the modules and symbols present - it will be just transient ANTLR type aspect that are no longer present. If de-serialisation fails it is a runtime exception as that is a major failing in the serialisation mechanism. The main reason for this is to speed up bootstrapping from a basic compiler once loaded it is always the same structure.