Package jmri.script
Class ScriptEngineSelector.Engine
- java.lang.Object
-
- jmri.script.ScriptEngineSelector.Engine
-
- Enclosing class:
- ScriptEngineSelector
public static class ScriptEngineSelector.Engine extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Engine(java.lang.String name, java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLanguageName()
Get the name.java.lang.String
getName()
Get the name.javax.script.ScriptEngine
getScriptEngine()
Get the script engine.boolean
isJavaScript()
Is this engine for JavaScript/ECMAscript?boolean
isJython()
Is this engine for Jython/Python?java.lang.String
toString()
-
-
-
Constructor Detail
-
Engine
Engine(java.lang.String name, java.lang.String id) throws javax.script.ScriptException
- Throws:
javax.script.ScriptException
-
-
Method Detail
-
getLanguageName
@Nonnull public java.lang.String getLanguageName()
Get the name.- Returns:
- the name
-
getScriptEngine
@Nonnull public javax.script.ScriptEngine getScriptEngine()
Get the script engine.- Returns:
- the script engine
-
isJython
public boolean isJython()
Is this engine for Jython/Python?- Returns:
- true if Jython/Python, false otherwise
-
isJavaScript
public boolean isJavaScript()
Is this engine for JavaScript/ECMAscript?- Returns:
- true if JavaScript/ECMAscript, false otherwise
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-