Package org.tn5250j.scripting
Class JPythonInterpreterDriver
- java.lang.Object
-
- org.tn5250j.scripting.JPythonInterpreterDriver
-
- All Implemented Interfaces:
InterpreterDriver
public class JPythonInterpreterDriver extends java.lang.Object implements InterpreterDriver
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.tn5250j.scripting.InterpreterDriver
InterpreterDriver.InterpreterException
-
-
Method Summary
Modifier and Type Method Description voidexecuteScript(java.lang.String script)voidexecuteScript(SessionPanel session, java.lang.String script)Execute a script string.voidexecuteScriptFile(java.lang.String scriptFile)Execute a script file.voidexecuteScriptFile(SessionPanel session, java.lang.String scriptFile)Execute a script file.java.lang.String[]getSupportedExtensions()Get the extension for supported extensions by this driverjava.lang.String[]getSupportedLanguages()Get the langauges for supported extensions by this driverstatic voidmain(java.lang.String[] args)
-
-
-
Method Detail
-
executeScript
public void executeScript(SessionPanel session, java.lang.String script) throws InterpreterDriver.InterpreterException
Description copied from interface:InterpreterDriverExecute a script string.- Specified by:
executeScriptin interfaceInterpreterDriver- Parameters:
session- a session objectscript- script a string to be interpreted- Throws:
InterpreterDriver.InterpreterException- which wraps the exception throw by underlying interpreter
-
executeScript
public void executeScript(java.lang.String script) throws InterpreterDriver.InterpreterException
-
executeScriptFile
public void executeScriptFile(SessionPanel session, java.lang.String scriptFile) throws InterpreterDriver.InterpreterException
Description copied from interface:InterpreterDriverExecute a script file.- Specified by:
executeScriptFilein interfaceInterpreterDriver- Parameters:
session- a session objectscriptFile- script a name of file to be interpreted- Throws:
InterpreterDriver.InterpreterException- which wraps the exception throw by underlying interpreter
-
executeScriptFile
public void executeScriptFile(java.lang.String scriptFile) throws InterpreterDriver.InterpreterExceptionDescription copied from interface:InterpreterDriverExecute a script file.- Specified by:
executeScriptFilein interfaceInterpreterDriver- Parameters:
scriptFile- a name of file to be interpreted- Throws:
InterpreterDriver.InterpreterException- which wraps the exception throw by underlying interpreter
-
getSupportedExtensions
public java.lang.String[] getSupportedExtensions()
Description copied from interface:InterpreterDriverGet the extension for supported extensions by this driver- Specified by:
getSupportedExtensionsin interfaceInterpreterDriver- Returns:
- Array of string containing extension supported
-
getSupportedLanguages
public java.lang.String[] getSupportedLanguages()
Description copied from interface:InterpreterDriverGet the langauges for supported extensions by this driver- Specified by:
getSupportedLanguagesin interfaceInterpreterDriver- Returns:
- Array of string containing languages supported
-
main
public static void main(java.lang.String[] args)
-
-