Save This Page
Home » bsf-src-2.4.0 » org.apache.bsf.engines.jython » [javadoc | source]
org.apache.bsf.engines.jython
public class: JythonEngine [javadoc | source]
java.lang.Object
   org.apache.bsf.util.BSFEngineImpl
      org.apache.bsf.engines.jython.JythonEngine

All Implemented Interfaces:
    BSFEngine

This is the interface to Jython (http://www.jython.org/) from BSF. It's derived from the JPython 1.x engine
Field Summary
 JythonEngine.BSFPythonInterpreter interp     
Fields inherited from org.apache.bsf.util.BSFEngineImpl:
mgr,  lang,  declaredBeans,  classPath,  tempDir,  classLoader
Method from org.apache.bsf.engines.jython.JythonEngine Summary:
apply,   call,   declareBean,   eval,   exec,   iexec,   initialize,   undeclareBean,   unwrap
Methods from org.apache.bsf.util.BSFEngineImpl:
apply,   compileApply,   compileExpr,   compileScript,   declareBean,   exec,   iexec,   initialize,   propertyChange,   terminate,   undeclareBean
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.bsf.engines.jython.JythonEngine Detail:
 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).
 public Object call(Object object,
    String method,
    Object[] args) throws BSFException 
    call the named method of the given object.
 public  void declareBean(BSFDeclaredBean bean) throws BSFException 
    Declare a bean
 public Object eval(String source,
    int lineNo,
    int columnNo,
    Object script) throws BSFException 
    Evaluate an expression.
 public  void exec(String source,
    int lineNo,
    int columnNo,
    Object script) throws BSFException 
    Execute a script.
 public  void iexec(String source,
    int lineNo,
    int columnNo,
    Object script) throws BSFException 
    Execute script code, emulating console interaction.
 public  void initialize(BSFManager mgr,
    String lang,
    Vector declaredBeans) throws BSFException 
    Initialize the engine.
 public  void undeclareBean(BSFDeclaredBean bean) throws BSFException 
    Undeclare a previously declared bean.
 public Object unwrap(PyObject result)