public class InterpreterDriverManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
executeScript(SessionPanel session,
String script,
String language)
Execute a script string
Execute the string supplied according to the langauge specified
|
static void |
executeScriptFile(SessionPanel session,
String scriptFile)
Exceute a script file.
|
static void |
executeScriptFile(String scriptFile)
Exceute a script file.
|
static boolean |
isScriptSupported(String scriptFile)
Check if there is a driver that supports the language.
|
static void |
registerDriver(InterpreterDriver driver)
Register a driver.
|
public static void registerDriver(InterpreterDriver driver)
driver - the driver to be registeredpublic static void executeScript(SessionPanel session, String script, String language) throws InterpreterDriver.InterpreterException
session - session panel objectscript - script to be executedlanguage - language for interpreting the script stringInterpreterDriver.InterpreterException - maybe an exceptionpublic static void executeScriptFile(SessionPanel session, String scriptFile) throws InterpreterDriver.InterpreterException
session - session panel objectscriptFile - file name containing scriptInterpreterDriver.InterpreterException - maybe an exceptionpublic static void executeScriptFile(String scriptFile) throws InterpreterDriver.InterpreterException
scriptFile - file name containing scriptInterpreterDriver.InterpreterException - maybe an exceptionpublic static boolean isScriptSupported(String scriptFile)
scriptFile - file name containing scriptCopyright © 2018. All rights reserved.