@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.script support, specifically ScriptEngineManager and ScriptEngine 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.