org.apache.bsf.engines.jython
Class JythonEngine
- BSFEngine, PropertyChangeListener
public class JythonEngine
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 , compileApply , compileExpr , compileScript , declareBean , exec , iexec , initialize , propertyChange , terminate , undeclareBean |
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).
- apply in interface BSFEngine
- apply in interface BSFEngineImpl
call
public Object call(Object object,
String method,
Object[] args)
throws BSFException
call the named method of the given object.
- call in interface BSFEngine
eval
public Object eval(String source,
int lineNo,
int columnNo,
Object script)
throws BSFException
Evaluate an expression.
- eval in interface BSFEngine
unwrap
public Object unwrap(PyObject result)