|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.bsf.util.BSFEngineImpl
org.codehaus.groovy.bsf.GroovyEngine
public class GroovyEngine
A BSF Engine for the Groovy scripting language.
It's derived from the Jython / JPython engine
| Field Summary | |
|---|---|
protected GroovyShell |
shell
|
| Fields inherited from class org.apache.bsf.util.BSFEngineImpl |
|---|
classLoader, classPath, declaredBeans, lang, mgr, tempDir |
| Constructor Summary | |
|---|---|
GroovyEngine()
|
|
| Method Summary | |
|---|---|
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(org.apache.bsf.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(org.apache.bsf.BSFManager mgr,
String lang,
Vector declaredBeans)
Initialize the engine. |
void |
undeclareBean(org.apache.bsf.BSFDeclaredBean bean)
Undeclare a previously declared bean. |
| Methods inherited from class org.apache.bsf.util.BSFEngineImpl |
|---|
compileApply, compileExpr, compileScript, iexec, propertyChange, terminate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GroovyShell shell
| Constructor Detail |
|---|
public GroovyEngine()
| Method Detail |
|---|
public Object apply(String source,
int lineNo,
int columnNo,
Object funcBody,
Vector paramNames,
Vector arguments)
throws org.apache.bsf.BSFException
apply in interface org.apache.bsf.BSFEngineapply in class org.apache.bsf.util.BSFEngineImplorg.apache.bsf.BSFException
public Object call(Object object,
String method,
Object[] args)
throws org.apache.bsf.BSFException
org.apache.bsf.BSFException
public Object eval(String source,
int lineNo,
int columnNo,
Object script)
throws org.apache.bsf.BSFException
org.apache.bsf.BSFException
public void exec(String source,
int lineNo,
int columnNo,
Object script)
throws org.apache.bsf.BSFException
exec in interface org.apache.bsf.BSFEngineexec in class org.apache.bsf.util.BSFEngineImplorg.apache.bsf.BSFException
public void initialize(org.apache.bsf.BSFManager mgr,
String lang,
Vector declaredBeans)
throws org.apache.bsf.BSFException
initialize in interface org.apache.bsf.BSFEngineinitialize in class org.apache.bsf.util.BSFEngineImplorg.apache.bsf.BSFException
public void declareBean(org.apache.bsf.BSFDeclaredBean bean)
throws org.apache.bsf.BSFException
declareBean in interface org.apache.bsf.BSFEnginedeclareBean in class org.apache.bsf.util.BSFEngineImplorg.apache.bsf.BSFException
public void undeclareBean(org.apache.bsf.BSFDeclaredBean bean)
throws org.apache.bsf.BSFException
undeclareBean in interface org.apache.bsf.BSFEngineundeclareBean in class org.apache.bsf.util.BSFEngineImplorg.apache.bsf.BSFExceptionprotected GroovyShell getEvalShell()
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||