Package jmri.script

Class ScriptEngineSelector.Engine

    • 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()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Engine

        Engine​(java.lang.String name,
               java.lang.String id)
        throws javax.script.ScriptException
        Throws:
        javax.script.ScriptException
    • Method Detail

      • getName

        @Nonnull
        public java.lang.String getName()
        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 class java.lang.Object