| websphinx.workbench.ScriptInterpreter
All known Subclasses: websphinx.workbench.Netscape,
ScriptInterpreter | public interface ScriptInterpreter (Code) | | |
apply | abstract public Object apply(Object func, Object[] args) throws ScriptException(Code) | | Call a procedure or function.
Parameters: func - Function object (previously returned by lambda() Parameters: args - Arguments for the function exception: ScriptException - if execution encounters an error |
get | abstract public Object get(String name)(Code) | | Get a variable defined in the interpreter's global
namespace
Parameters: name - Name of variable to get Value of variable, or null if not defined |
getLanguage | abstract public String getLanguage()(Code) | | Return name of language this interpreter handles.
Language name, such as "Javascript" or "TCL" |
lambda | abstract public Object lambda(String[] args, String body) throws ScriptException(Code) | | Construct a procedure or function.
Parameters: args - Argument names Parameters: body - Function body Function object suitable for apply() exception: ScriptException - if execution encounters an error |
set | abstract public void set(String name, Object object)(Code) | | Set a variable in the interpreter's global namespace
Parameters: name - Name of variable Parameters: object - New value for variable |
|
|