| org.codehaus.groovy.bsf.GroovyEngine
All known Subclasses: org.codehaus.groovy.bsf.CachingGroovyEngine,
GroovyEngine | public class GroovyEngine extends BSFEngineImpl (Code) | | A BSF Engine for the Groovy
scripting language.
It's derived from the Jython / JPython engine
author: James Strachan |
Method Summary | |
public Object | apply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments) | public Object | call(Object object, String method, Object[] args) Call the named method of the given object. | public void | declareBean(BSFDeclaredBean bean) | public Object | eval(String source, int lineNo, int columnNo, Object script) Evaluate an expression. | public void | exec(String source, int lineNo, int columnNo, Object script) Execute a script. | protected GroovyShell | getEvalShell() | public void | initialize(BSFManager mgr, String lang, Vector declaredBeans) Initialize the engine. | public void | undeclareBean(BSFDeclaredBean bean) Undeclare a previously declared bean. |
apply | public Object apply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments) throws BSFException(Code) | | Allow an anonymous function to be declared and invoked
|
declareBean | public void declareBean(BSFDeclaredBean bean) throws BSFException(Code) | | Declare a bean
|
eval | public Object eval(String source, int lineNo, int columnNo, Object script) throws BSFException(Code) | | Evaluate an expression.
|
exec | public void exec(String source, int lineNo, int columnNo, Object script) throws BSFException(Code) | | Execute a script.
|
getEvalShell | protected GroovyShell getEvalShell()(Code) | | a newly created GroovyShell using the same variable scope but a new class loader |
initialize | public void initialize(BSFManager mgr, String lang, Vector declaredBeans) throws BSFException(Code) | | Initialize the engine.
|
undeclareBean | public void undeclareBean(BSFDeclaredBean bean) throws BSFException(Code) | | Undeclare a previously declared bean.
|
|
|