|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.
| Inner Class Summary | |
static interface |
InterpreterDriver.InterpreterException
Nested class for wrapping the exception throw by underlying interpreter while executing scripts |
| Method Summary | |
void |
executeScript(java.lang.String script)
Execute a script string. |
void |
executeScriptFile(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 |
public void executeScript(java.lang.String script)
throws InterpreterDriver.InterpreterException
script - a string to be interpreted
public void executeScriptFile(java.lang.String scriptFile)
throws InterpreterDriver.InterpreterException
script - a name of file to be interpretedpublic java.lang.String[] getSupportedExtensions()
public java.lang.String[] getSupportedLanguages()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||