|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--org.apache.bsf.util.BSFEngineImpl
|
+--org.apache.bsf.engines.jpython.JPythonEngine
This is the interface to JPython (http://www.jpython.org/) from BSF.
| Field Summary |
|---|
| Fields inherited from class org.apache.bsf.util.BSFEngineImpl |
|---|
classLoader, classPath, dbgmgr, declaredBeans, lang, mgr, tempDir |
| Constructor Summary | |
|---|---|
JPythonEngine()
|
|
| Method Summary | |
|---|---|
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 |
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 |
|---|
apply, compileApply, compileExpr, compileScript, disconnectedDebuggerNotify, getSpecificDebuggingInterface, placeBreakpointAtLine, placeBreakpointAtOffset, propertyChange, removeBreakpoint, setEntryExit, terminate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JPythonEngine()
| 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 BSFEngineImplbean - the bean to declare
BSFException - if the engine cannot do this operation
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 BSFEngineImplsource - (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 script to execute
BSFException - if anything goes wrong while exec'ing a
BSFException is thrown. The reason indicates the problem.
public void initialize(BSFManager mgr,
java.lang.String lang,
java.util.Vector declaredBeans)
throws BSFException
initialize in interface BSFEngineinitialize in class BSFEngineImplmgr - The BSFManager that's hosting this engine.lang - Language string which this engine is handling.declaredBeans - Vector of BSFDeclaredObject containing beans
that should be declared into the language runtime at init
time as best as possible.
BSFException - if anything goes wrong while init'ing a
BSFException is thrown. The reason indicates the problem.
public void undeclareBean(BSFDeclaredBean bean)
throws BSFException
undeclareBean in interface BSFEngineundeclareBean in class BSFEngineImplbean - the bean to undeclare
BSFException - if the engine cannot do this operationpublic java.lang.Object unwrap(org.python.core.PyObject result)
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||