Package org.codehaus.groovy.bsf
Class CachingGroovyEngine
- java.lang.Object
- 
- org.apache.bsf.util.BSFEngineImpl
- 
- org.codehaus.groovy.bsf.GroovyEngine
- 
- org.codehaus.groovy.bsf.CachingGroovyEngine
 
 
 
- 
- All Implemented Interfaces:
- PropertyChangeListener,- EventListener,- org.apache.bsf.BSFEngine
 
 public class CachingGroovyEngine extends GroovyEngine A Caching implementation of the GroovyEngine
- 
- 
Field Summary- 
Fields inherited from class org.codehaus.groovy.bsf.GroovyEngineshell
 
- 
 - 
Constructor SummaryConstructors Constructor Description CachingGroovyEngine()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Objecteval(String source, int lineNo, int columnNo, Object script)Evaluate an expression.voidexec(String source, int lineNo, int columnNo, Object script)Execute a script.voidinitialize(org.apache.bsf.BSFManager mgr, String lang, Vector declaredBeans)Initialize the engine.- 
Methods inherited from class org.codehaus.groovy.bsf.GroovyEngineapply, call, declareBean, getEvalShell, undeclareBean
 
- 
 
- 
- 
- 
Method Detail- 
evalpublic Object eval(String source, int lineNo, int columnNo, Object script) throws org.apache.bsf.BSFException Evaluate an expression.- Specified by:
- evalin interface- org.apache.bsf.BSFEngine
- Overrides:
- evalin class- GroovyEngine
- Throws:
- org.apache.bsf.BSFException
 
 - 
execpublic void exec(String source, int lineNo, int columnNo, Object script) throws org.apache.bsf.BSFException Execute a script.- Specified by:
- execin interface- org.apache.bsf.BSFEngine
- Overrides:
- execin class- GroovyEngine
- Throws:
- org.apache.bsf.BSFException
 
 - 
initializepublic void initialize(org.apache.bsf.BSFManager mgr, String lang, Vector declaredBeans) throws org.apache.bsf.BSFExceptionInitialize the engine.- Specified by:
- initializein interface- org.apache.bsf.BSFEngine
- Overrides:
- initializein class- GroovyEngine
- Throws:
- org.apache.bsf.BSFException
 
 
- 
 
-