Package jmri.script
@DefaultAnnotation({})
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.scriptsupport, specificallyScriptEngineManagerandScriptEngineet 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
JmriScriptEngineManagerclass and the jmri.script.jsr223graalpython package. For more information on this, see the associated README-WIP.md file.
-
ClassesClassDescriptionInternal class for the ScriptEngineSelectorProvide a manager for
ScriptEngines.Selects a valid scripting engine.