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

All Implemented Interfaces:
    BSFEngine

This is the interface to Netscape's Rhino (JavaScript) from the Bean Scripting Framework.

The original version of this code was first written by Adam Peller for use in LotusXSL. Sanjiva took his code and adapted it for BSF.

Fields inherited from org.apache.bsf.util.BSFEngineImpl:
mgr,  lang,  declaredBeans,  classPath,  tempDir,  classLoader
Method from org.apache.bsf.engines.javascript.JavaScriptEngine Summary:
call,   declareBean,   eval,   initialize,   undeclareBean
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.javascript.JavaScriptEngine Detail:
 public Object call(Object object,
    String method,
    Object[] args) throws BSFException 
    Return an object from an extension.
 public  void declareBean(BSFDeclaredBean bean) throws BSFException 
 public Object eval(String source,
    int lineNo,
    int columnNo,
    Object oscript) throws BSFException 
    This is used by an application to evaluate a string containing some expression.
 public  void initialize(BSFManager mgr,
    String lang,
    Vector declaredBeans) throws BSFException 
    Initialize the engine. Put the manager into the context-manager map hashtable too.
 public  void undeclareBean(BSFDeclaredBean bean) throws BSFException