| java.lang.Object fr.aliacom.util.JythonInterpreter
JythonInterpreter | final public class JythonInterpreter (Code) | | A Jython interpreter wrapper suitable for executing
code on a
fr.aliacom.form.common.FormContext .
The executeByName methods automatically defines a few
variables :
author: tom author: (c) 2001, 2003 Thomas Cataldo |
executeByName | public void executeByName(String name, FormContext ctx) throws IOException(Code) | | Execute a script on a
FormContext .
This method tries to execute a cached version of the script.
If the script is not cached, it is read using the loadScript
method in the
Toolkit class and added to the cache.
Parameters: name - the script to execute Parameters: ctx - the context holding the variables passed to the script throws: Exception - |
get | public Object get(String name, Class klass)(Code) | | Bring a value from the interpreter environment to the java environment.
Parameters: name - Parameters: klass - the value of a variable in the interpreter environment |
release | public void release()(Code) | | |
|
|