| java.lang.Object org.apache.bsf.util.BSFEngineImpl
All known Subclasses: org.apache.bsf.engines.javaclass.JavaClassEngine, org.apache.bsf.engines.java.JavaEngine, org.apache.bsf.engines.jacl.JaclEngine, org.apache.bsf.engines.jython.JythonEngine, org.apache.bsf.engines.javascript.JavaScriptEngine, org.apache.bsf.engines.xslt.XSLTEngine, org.apache.bsf.engines.netrexx.NetRexxEngine,
BSFEngineImpl | abstract public class BSFEngineImpl implements BSFEngine(Code) | | This is a base implementation of the BSFEngine interface which
engine implementations may choose to extend to get the basic
methods of the interface implemented.
author: Sanjiva Weerawarana author: Olivier Gruber (added original debugging support) |
Method Summary | |
public 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. | public void | compileApply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments, CodeBuffer cb) Default impl of compileApply - calls compileExpr ignoring parameters. | public 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. | public 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. | public void | declareBean(BSFDeclaredBean bean) | public void | exec(String source, int lineNo, int columnNo, Object script) Default impl of execute - calls eval and ignores the result. | public void | iexec(String source, int lineNo, int columnNo, Object script) Default impl of interactive execution - calls eval and ignores the result. | public void | initialize(BSFManager mgr, String lang, Vector declaredBeans) initialize the engine; called right after construction by
the manager. | public void | propertyChange(PropertyChangeEvent e) Receive property change events from the manager and update my fields
as needed. | public void | terminate() | public void | undeclareBean(BSFDeclaredBean bean) |
compileExpr | public void compileExpr(String source, int lineNo, int columnNo, Object expr, CodeBuffer cb) throws BSFException(Code) | | Default impl of compileExpr - generates code that'll create a new
manager, evaluate the expression, and return the value.
|
compileScript | public void compileScript(String source, int lineNo, int columnNo, Object script, CodeBuffer cb) throws BSFException(Code) | | Default impl of compileScript - generates code that'll create a new
manager, and execute the script.
|
exec | public void exec(String source, int lineNo, int columnNo, Object script) throws BSFException(Code) | | Default impl of execute - calls eval and ignores the result.
|
iexec | public void iexec(String source, int lineNo, int columnNo, Object script) throws BSFException(Code) | | Default impl of interactive execution - calls eval and ignores the result.
|
initialize | public void initialize(BSFManager mgr, String lang, Vector declaredBeans) throws BSFException(Code) | | initialize the engine; called right after construction by
the manager. Declared beans are simply kept in a vector and
that's it. Subclasses must do whatever they want with it.
|
propertyChange | public void propertyChange(PropertyChangeEvent e)(Code) | | Receive property change events from the manager and update my fields
as needed.
Parameters: e - PropertyChange event with the change data |
terminate | public void terminate()(Code) | | |
|
|