org.apache.bsf.engines.javascript
Class JavaScriptEngine
- BSFEngine, PropertyChangeListener
public class JavaScriptEngine
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.
- Adam Peller
- Sanjiva Weerawarana
- Matthew J. Duftler
- Norris Boyd
apply , compileApply , compileExpr , compileScript , declareBean , exec , iexec , initialize , propertyChange , terminate , undeclareBean |
call
public Object call(Object object,
String method,
Object[] args)
throws BSFException
Return an object from an extension.
- call in interface BSFEngine
object
- Object on which to make the call (ignored).method
- The name of the method to call.args
- an array of arguments to be
passed to the extension, which may be either
Vectors of Nodes, or Strings.
eval
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.
- eval in interface BSFEngine