org.apache.bsf.engines.jython
Class JythonEngine
BSFEngineImpl
org.apache.bsf.engines.jython.JythonEngine
public class JythonEngine
extends BSFEngineImpl
This is the interface to Jython (http://www.jython.org/) from BSF.
It's derived from the JPython 1.x engine
- Sanjiva Weerawarana
- Finn Bock
- Chuck Murcko
Object | apply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments) - Evaluate an anonymous function (differs from eval() in that apply()
handles multiple lines).
|
Object | call(Object object, String method, Object[] args) - call the named method of the given object.
|
void | declareBean(BSFDeclaredBean bean) - Declare a bean
|
Object | eval(String source, int lineNo, int columnNo, Object script) - Evaluate an expression.
|
void | exec(String source, int lineNo, int columnNo, Object script) - Execute a script.
|
void | iexec(String source, int lineNo, int columnNo, Object script) - Execute script code, emulating console interaction.
|
void | initialize(BSFManager mgr, String lang, Vector declaredBeans) - Initialize the engine.
|
void | undeclareBean(BSFDeclaredBean bean) - Undeclare a previously declared bean.
|
Object | unwrap(PyObject result)
|
apply
public Object apply(String source,
int lineNo,
int columnNo,
Object funcBody,
Vector paramNames,
Vector arguments)
throws BSFException
Evaluate an anonymous function (differs from eval() in that apply()
handles multiple lines).
call
public Object call(Object object,
String method,
Object[] args)
throws BSFException
call the named method of the given object.
declareBean
public void declareBean(BSFDeclaredBean bean)
throws BSFException
Declare a bean
eval
public Object eval(String source,
int lineNo,
int columnNo,
Object script)
throws BSFException
Evaluate an expression.
exec
public void exec(String source,
int lineNo,
int columnNo,
Object script)
throws BSFException
Execute a script.
iexec
public void iexec(String source,
int lineNo,
int columnNo,
Object script)
throws BSFException
Execute script code, emulating console interaction.
initialize
public void initialize(BSFManager mgr,
String lang,
Vector declaredBeans)
throws BSFException
Initialize the engine.
undeclareBean
public void undeclareBean(BSFDeclaredBean bean)
throws BSFException
Undeclare a previously declared bean.
unwrap
public Object unwrap(PyObject result)