Package jmri.script
Class ScriptEngineSelector
java.lang.Object
jmri.script.ScriptEngineSelector
Selects a valid scripting engine.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ScriptEngineSelector.Engine>Get a unmodifiable list of all the engines.Get the selected engine.voidsetSelectedEngine(String languageName) Sets the selected engine from the language name.voidSets the selected engine.
-
Field Details
-
JYTHON
- See Also:
-
ECMA_SCRIPT
- See Also:
-
-
Constructor Details
-
ScriptEngineSelector
public ScriptEngineSelector()
-
-
Method Details
-
getSelectedEngine
Get the selected engine.- Returns:
- the engine
-
setSelectedEngine
Sets the selected engine.- Parameters:
engine- the engine
-
setSelectedEngine
Sets the selected engine from the language name.- Parameters:
languageName- the engine
-
getAllEngines
Get a unmodifiable list of all the engines.- Returns:
- the list
-