|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscripting.InterpreterDriverManager
public class InterpreterDriverManager
Class for managing interpreter drivers. This manager is responsible for keeping track of loaded drivers. Interpreter drivers are required to register an instance of themselves with this manager when they are loaded.
Method Summary | |
---|---|
static void |
executeScript(java.lang.String script,
java.lang.String language,
java.lang.String[] argNames,
java.lang.String[] argValues)
Execute a script string Execute the string supplied according to the langauge specified |
static void |
executeScriptFile(java.lang.String scriptFile,
java.lang.String[] argNames,
java.lang.String[] argValues)
Exceute a script file. |
static void |
registerDriver(InterpreterDriver driver)
Register a driver. |
static void |
setVariable(java.lang.String name,
java.lang.String value)
Sets a variable/member to the specified value for all registered drivers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void registerDriver(InterpreterDriver driver)
driver
- the driver to be registeredpublic static void executeScript(java.lang.String script, java.lang.String language, java.lang.String[] argNames, java.lang.String[] argValues) throws InterpreterDriver.InterpreterException
script
- script to be executedlanguage
- language for interpreting the script stringargNames
- an array containing the names of arguments to be passed to
the evaluationargValues
- an array containing the values of the arguments to be
passed to the evaluation
InterpreterDriver.InterpreterException
public static void executeScriptFile(java.lang.String scriptFile, java.lang.String[] argNames, java.lang.String[] argValues) throws InterpreterDriver.InterpreterException
scriptFile
- file name containing scriptargNames
- an array containing the names of arguments to be passed to
the evaluationargValues
- an array containing the values of the arguments to be
passed to the evaluation
InterpreterDriver.InterpreterException
public static void setVariable(java.lang.String name, java.lang.String value)
name
- the name of the variable to setvalue
- the value to assign the variable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |