ScriptingProtocolReplManager
class ScriptingProtocolReplManager(scope: Any, blackbox: Blackbox) : ScriptingReplManager
Content copied to clipboard
REPL manager that uses the IPC protocol defined in ScriptingProtocol.kt to communicate with a black box. Suitable for presenting arbitrary access to Kotlin/JVM state to scripting APIs. See Module.md for a detailed description of the REPL loop.
Constructors
ScriptingProtocolReplManager
Link copied to clipboard
Functions
autocomplete
Link copied to clipboard
open override fun autocomplete(command: String, cursorPos: Int?): AutocompleteResults
Content copied to clipboard
exec
Link copied to clipboard
foreignExecLoop
Link copied to clipboard
fun foreignExecLoop()
Content copied to clipboard
Listens to requests for values from the black box, and replies to them, during script execution. Terminates loop after receiving a request with a the 'PassMic' flag.
getRequestResponse
Link copied to clipboard
fun getRequestResponse(packetToSend: ScriptingPacket, enforceValidity: Boolean = true, execLoop: () -> Unit = fun(){}): ScriptingPacket
Content copied to clipboard
Properties
Sources
jvm source
Link copied to clipboard