MaskingBridgeImpl

Masking-owned MaskingBridge: forwards REPL calls to ReplHost and remap-cache calls to RemapCacheBuilder, both object singletons on this same loader.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun buildArtifacts(clientTxt: String, secondSource: String, runtimeMcUri: String, outMappings: String, outSymbolsDir: String)

Assemble the remap mappings and reverse-remap runtimeMcUri into a mojmap symbol jar. See buildRemapArtifacts for the argument contract.

Link copied to clipboard
open override fun buildCompiler(cpFiles: List<File>)

Build the Kotlin compiler state (overlay + createState).

Link copied to clipboard
open override fun buildForgeArtifacts(joinedTsrg: String, clientTxt: String, runtimeMcUri: String, outMappings: String, outSymbolsDir: String)

Forge Mixed-SRG analog of buildArtifacts: assemble srg_to_official from the MCPConfig joinedTsrg + Mojang mappings, then reverse-remap the Mixed-SRG runtime jar into a mojmap symbol jar.

Link copied to clipboard
open override fun compile(code: String, cpFiles: List<File>, killIdField: String, evalId: Int): Any

Compile a snippet to an opaque handle. The handle is a masking-only type, so it is only ever passed back to execute.

Link copied to clipboard
open override fun execute(handle: Any, code: String, out: Capture): Any

Run a compiled handle.

Link copied to clipboard
open override fun preload(): Boolean

Load the compiler working set.

Link copied to clipboard
open override fun recordWorkingSet(path: String)

Write the classes the masking loader has defined so far to path, plus a stamp of the kotlin version they were recorded under. Training launches only; preload reads it back next launch.

Link copied to clipboard
open override fun warm()

Compile and run one dummy snippet, warming the whole eval path.