Package jmri.script
Provides JMRI's built in scripting support.
Note that this package is in flux.
- Pre-JMRI 5, this used Java's
javax.script
support, specificallyScriptEngineManager
andScriptEngine
et al to provide- python support via Jython, and
- Javascript support via the Nashorn engine.
- JMRI 5 brings the beginning of support for the next
generation of scripting support, specifically through
GraalVM.
This is being done as a first phase by wrapping
the GraalVM Python 3 interpreter so that it's usable by the
JmriScriptEngineManager
class and the jmri.script.jsr223graalpython package. For more information on this, see the associated README-WIP.md file.
-
Class Summary Class Description Bundle InternalScriptEngineSelector Internal class for the ScriptEngineSelectorJmriScriptEngineManager Provide a manager forScriptEngine
s.ScriptEngineSelector Selects a valid scripting engine.ScriptEngineSelector.Engine