| java.lang.Object org.apache.bsf.util.BSFEngineImpl org.apache.bsf.engines.javascript.JavaScriptEngine
JavaScriptEngine | public class JavaScriptEngine extends BSFEngineImpl (Code) | | 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.
author: Adam Peller author: Sanjiva Weerawarana author: Matthew J. Duftler author: Norris Boyd |
call | public Object call(Object object, String method, Object[] args) throws BSFException(Code) | | Return an object from an extension.
Parameters: object - Object on which to make the call (ignored). Parameters: method - The name of the method to call. Parameters: args - an array of arguments to bepassed to the extension, which may be eitherVectors of Nodes, or Strings. |
eval | public Object eval(String source, int lineNo, int columnNo, Object oscript) throws BSFException(Code) | | This is used by an application to evaluate a string containing
some expression.
|
Methods inherited from org.apache.bsf.util.BSFEngineImpl | public Object apply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments) throws BSFException(Code)(Java Doc) public void compileApply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments, CodeBuffer cb) throws BSFException(Code)(Java Doc) public void compileExpr(String source, int lineNo, int columnNo, Object expr, CodeBuffer cb) throws BSFException(Code)(Java Doc) public void compileScript(String source, int lineNo, int columnNo, Object script, CodeBuffer cb) throws BSFException(Code)(Java Doc) public void declareBean(BSFDeclaredBean bean) throws BSFException(Code)(Java Doc) public void exec(String source, int lineNo, int columnNo, Object script) throws BSFException(Code)(Java Doc) public void iexec(String source, int lineNo, int columnNo, Object script) throws BSFException(Code)(Java Doc) public void initialize(BSFManager mgr, String lang, Vector declaredBeans) throws BSFException(Code)(Java Doc) public void propertyChange(PropertyChangeEvent e)(Code)(Java Doc) public void terminate()(Code)(Java Doc) public void undeclareBean(BSFDeclaredBean bean) throws BSFException(Code)(Java Doc)
|
|
|