BytecodePrecompiler
fun interface BytecodePrecompiler<C : Precompiler.Configuration> : Precompiler<C, String, ByteBuffer>
Bytecode Precompiler
Accepts code in the form of a simple String, and is expected to return transformed code in the form of a buffer containing raw bytecode which is directly executable by the runtime.
Functions
Link copied to clipboard
abstract operator fun invoke(req: Precompiler.PrecompileSourceRequest<C>, input: String): ByteBuffer?
Link copied to clipboard
open suspend fun precompile(req: Precompiler.PrecompileSourceRequest<C>, input: String): ByteBuffer?
Precompile the input using this precompiler.
Link copied to clipboard
inline suspend fun <C : Precompiler.Configuration, I, O> Precompiler<C, I, O>.precompileSafe(req: Precompiler.PrecompileSourceRequest<C>, code: I): Pair<DiagnosticsSuite, O?>
Precompile using the provided inputs,