|
20080913, rgf | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.bsf.util.BSFEngineImpl
org.apache.bsf.engines.jython.JythonEngine
This is the interface to Jython (http://www.jython.org/) from BSF. It's derived from the JPython 1.x engine
| Field Summary | |
(package private) org.apache.bsf.engines.jython.JythonEngine.BSFPythonInterpreter |
interp
|
| Fields inherited from class org.apache.bsf.util.BSFEngineImpl |
classLoader, classPath, declaredBeans, lang, mgr, tempDir |
| Constructor Summary | |
JythonEngine()
|
|
| Method Summary | |
java.lang.Object |
apply(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object funcBody,
java.util.Vector paramNames,
java.util.Vector arguments)
Evaluate an anonymous function (differs from eval() in that apply() handles multiple lines). |
java.lang.Object |
call(java.lang.Object object,
java.lang.String method,
java.lang.Object[] args)
call the named method of the given object. |
void |
declareBean(BSFDeclaredBean bean)
Declare a bean |
java.lang.Object |
eval(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
Evaluate an expression. |
void |
exec(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
Execute a script. |
void |
iexec(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
Execute script code, emulating console interaction. |
void |
initialize(BSFManager mgr,
java.lang.String lang,
java.util.Vector declaredBeans)
Initialize the engine. |
void |
undeclareBean(BSFDeclaredBean bean)
Undeclare a previously declared bean. |
java.lang.Object |
unwrap(org.python.core.PyObject result)
|
| Methods inherited from class org.apache.bsf.util.BSFEngineImpl |
compileApply, compileExpr, compileScript, propertyChange, terminate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
org.apache.bsf.engines.jython.JythonEngine.BSFPythonInterpreter interp
| Constructor Detail |
public JythonEngine()
| Method Detail |
public java.lang.Object call(java.lang.Object object,
java.lang.String method,
java.lang.Object[] args)
throws BSFException
object - object on which to make the callmethod - name of the method / procedure to callargs - the arguments to be given to the procedure
BSFException - if anything goes wrong while eval'ing a
BSFException is thrown. The reason indicates the problem.
public void declareBean(BSFDeclaredBean bean)
throws BSFException
declareBean in interface BSFEnginedeclareBean in class BSFEngineImplBSFException
public java.lang.Object apply(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object funcBody,
java.util.Vector paramNames,
java.util.Vector arguments)
throws BSFException
apply in interface BSFEngineapply in class BSFEngineImplBSFException
public java.lang.Object eval(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
throws BSFException
source - (context info) the source of this expression
(e.g., filename)lineNo - (context info) the line number in source for exprcolumnNo - (context info) the column number in source for exprscript - the expression to evaluate
BSFException - if anything goes wrong while eval'ing a
BSFException is thrown. The reason indicates the problem.
public void exec(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
throws BSFException
exec in interface BSFEngineexec in class BSFEngineImplBSFException
public void iexec(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
throws BSFException
iexec in interface BSFEngineiexec in class BSFEngineImplBSFException
public void initialize(BSFManager mgr,
java.lang.String lang,
java.util.Vector declaredBeans)
throws BSFException
initialize in interface BSFEngineinitialize in class BSFEngineImplBSFException
public void undeclareBean(BSFDeclaredBean bean)
throws BSFException
undeclareBean in interface BSFEngineundeclareBean in class BSFEngineImplBSFExceptionpublic java.lang.Object unwrap(org.python.core.PyObject result)
|
20080913, rgf | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||