| bsh.util.BeanShellBSFEngine
BeanShellBSFEngine | public class BeanShellBSFEngine extends BSFEngineImpl (Code) | | This is the BeanShell adapter for IBM's Bean Scripting Famework.
It is an implementation of the BSFEngine class, allowing BSF aware
applications to use BeanShell as a scripting language.
I believe this implementation is complete (with some hesitation about the
the usefullness of the compileXXX() style methods - provided by the base
utility class).
author: Pat Niemeyer |
Method Summary | |
public Object | apply(String source, int lineNo, int columnNo, Object funcBody, Vector namesVec, Vector argsVec) This is an implementation of the BSF apply() method. | public Object | call(Object object, String name, Object[] args) Invoke method name on the specified bsh scripted object. | public void | declareBean(BSFDeclaredBean bean) | public Object | eval(String source, int lineNo, int columnNo, Object expr) | public void | exec(String source, int lineNo, int columnNo, Object script) | public void | initialize(BSFManager mgr, String lang, Vector declaredBeans) | public void | setDebug(boolean debug) | public void | terminate() | public void | undeclareBean(BSFDeclaredBean bean) |
bsfApplyMethod | final static String bsfApplyMethod(Code) | | A helper BeanShell method that implements the anonymous method apply
proposed by BSF. Note that the script below could use the standard
bsh eval() method to set the variables and apply the text, however
then I'd have to escape quotes, etc.
|
installedApplyMethod | boolean installedApplyMethod(Code) | | |
interpreter | Interpreter interpreter(Code) | | |
apply | public Object apply(String source, int lineNo, int columnNo, Object funcBody, Vector namesVec, Vector argsVec) throws BSFException(Code) | | This is an implementation of the BSF apply() method.
It exectutes the funcBody text in an "anonymous" method call with
arguments.
|
call | public Object call(Object object, String name, Object[] args) throws BSFException(Code) | | Invoke method name on the specified bsh scripted object.
The object may be null to indicate the global namespace of the
interpreter.
Parameters: object - may be null for the global namespace. |
declareBean | public void declareBean(BSFDeclaredBean bean) throws BSFException(Code) | | |
exec | public void exec(String source, int lineNo, int columnNo, Object script) throws BSFException(Code) | | |
initialize | public void initialize(BSFManager mgr, String lang, Vector declaredBeans) throws BSFException(Code) | | |
setDebug | public void setDebug(boolean debug)(Code) | | |
terminate | public void terminate()(Code) | | |
undeclareBean | public void undeclareBean(BSFDeclaredBean bean) throws BSFException(Code) | | |
|
|