org.apache.bsf.util
public abstract class BSFEngineImpl extends Object implements BSFEngine
| Field Summary | |
|---|---|
| protected ClassLoader | classLoader |
| protected String | classPath |
| protected Vector | declaredBeans |
| protected String | lang |
| protected BSFManager | mgr |
| protected String | tempDir |
| Method Summary | |
|---|---|
| Object | apply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments)
Default impl of apply - calls eval ignoring parameters and returns
the result. |
| void | compileApply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments, CodeBuffer cb)
Default impl of compileApply - calls compileExpr ignoring parameters. |
| void | compileExpr(String source, int lineNo, int columnNo, Object expr, CodeBuffer cb)
Default impl of compileExpr - generates code that'll create a new
manager, evaluate the expression, and return the value. |
| void | compileScript(String source, int lineNo, int columnNo, Object script, CodeBuffer cb)
Default impl of compileScript - generates code that'll create a new
manager, and execute the script. |
| void | declareBean(BSFDeclaredBean bean) |
| void | exec(String source, int lineNo, int columnNo, Object script)
Default impl of execute - calls eval and ignores the result. |
| void | iexec(String source, int lineNo, int columnNo, Object script)
Default impl of interactive execution - calls eval and ignores the result. |
| void | initialize(BSFManager mgr, String lang, Vector declaredBeans)
initialize the engine; called right after construction by
the manager. |
| void | propertyChange(PropertyChangeEvent e)
Receive property change events from the manager and update my fields
as needed.
|
| void | terminate() |
| void | undeclareBean(BSFDeclaredBean bean) |
Parameters: e PropertyChange event with the change data