A BSF Engine for the Groovy scripting language.
It's inspired from the Jython engine
Modifiers | Name | Description |
---|---|---|
protected GroovyShell |
shell |
Type Params | Return Type | Name and description |
---|---|---|
|
Object |
apply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments) Allow an anonymous function to be declared and invoked |
|
Object |
call(Object object, String method, Object[] args) Call the named method of the given object. |
|
void |
declareBean(BSFDeclaredBean bean) Declare a bean |
|
Object |
eval(String source, int lineNo, int columnNo, Object script) Evaluate an expression. |
|
void |
exec(String source, int lineNo, int columnNo, Object script) Execute a script. |
|
protected GroovyShell |
getEvalShell()
|
|
void |
initialize(BSFManager mgr, String lang, Vector declaredBeans) Initialize the engine. |
|
void |
undeclareBean(BSFDeclaredBean bean) Undeclare a previously declared bean. |
Allow an anonymous function to be declared and invoked
Call the named method of the given object.
Declare a bean
Initialize the engine.
Undeclare a previously declared bean.