Interface InterpreterDriver

  • All Known Implementing Classes:
    JPythonInterpreterDriver

    public interface InterpreterDriver
    Driver interface for scripting interpreter. Each language supported must implement this interface. The implementation fo this interface will typically delegate the work to the underlying third-party interpreter. The implementing class must create an instance of itself and register it with InterpreterDriverManager when it is loaded.
    Author:
    Ramnivas Laddad
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  InterpreterDriver.InterpreterException
      Nested class for wrapping the exception throw by underlying interpreter while executing scripts
    • Method Summary

      Modifier and Type Method Description
      void executeScript​(SessionPanel session, java.lang.String script)
      Execute a script string.
      void executeScriptFile​(java.lang.String scriptFile)
      Execute a script file.
      void executeScriptFile​(SessionPanel session, java.lang.String scriptFile)
      Execute a script file.
      java.lang.String[] getSupportedExtensions()
      Get the extension for supported extensions by this driver
      java.lang.String[] getSupportedLanguages()
      Get the langauges for supported extensions by this driver
    • Method Detail

      • getSupportedExtensions

        java.lang.String[] getSupportedExtensions()
        Get the extension for supported extensions by this driver
        Returns:
        Array of string containing extension supported
      • getSupportedLanguages

        java.lang.String[] getSupportedLanguages()
        Get the langauges for supported extensions by this driver
        Returns:
        Array of string containing languages supported