org.apache.bsf.engines.javascript
public class JavaScriptEngine extends BSFEngineImpl
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.
Method Summary | |
---|---|
Object | call(Object object, String method, Object[] args)
Return an object from an extension. |
void | declareBean(BSFDeclaredBean bean) |
void | disconnectedDebuggerNotify() |
Object | eval(String source, int lineNo, int columnNo, Object oscript)
This is used by an application to evaluate a string containing
some expression. |
Object | getSpecificDebuggingInterface() |
void | initialize(BSFManager mgr, String lang, Vector declaredBeans)
initialize the engine. put the manager into the context -> manager
map hashtable too. |
void | placeBreakpointAtLine(int brkptid, String docname, int lineno) |
void | placeBreakpointAtOffset(int brkptid, String docname, int offset) |
void | removeBreakpoint(String docname, int brkptid) |
void | setEntryExit(String docname, boolean on) |
void | undeclareBean(BSFDeclaredBean bean) |
Parameters: 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.