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:
- java.beans.PropertyChangeListener,- java.util.EventListener,- org.apache.bsf.BSFEngine
public class CachingGroovyEngine extends GroovyEngine
A Caching implementation of the GroovyEngine
- 
Field SummaryFields inherited from class org.codehaus.groovy.bsf.GroovyEngineshellFields inherited from class org.apache.bsf.util.BSFEngineImplclassLoader, classPath, declaredBeans, lang, mgr, tempDir
- 
Constructor SummaryConstructors Constructor Description CachingGroovyEngine()
- 
Method SummaryModifier and Type Method Description java.lang.Objecteval(java.lang.String source, int lineNo, int columnNo, java.lang.Object script)Evaluate an expression.voidexec(java.lang.String source, int lineNo, int columnNo, java.lang.Object script)Execute a script.voidinitialize(org.apache.bsf.BSFManager mgr, java.lang.String lang, java.util.Vector declaredBeans)Initialize the engine.Methods inherited from class org.codehaus.groovy.bsf.GroovyEngineapply, call, declareBean, getEvalShell, undeclareBeanMethods inherited from class org.apache.bsf.util.BSFEngineImplcompileApply, compileExpr, compileScript, iexec, propertyChange, terminateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
CachingGroovyEnginepublic CachingGroovyEngine()
 
- 
- 
Method Details- 
evalpublic java.lang.Object eval(java.lang.String source, int lineNo, int columnNo, java.lang.Object script) throws org.apache.bsf.BSFExceptionEvaluate an expression.- Specified by:
- evalin interface- org.apache.bsf.BSFEngine
- Overrides:
- evalin class- GroovyEngine
- Throws:
- org.apache.bsf.BSFException
 
- 
execpublic void exec(java.lang.String source, int lineNo, int columnNo, java.lang.Object script) throws org.apache.bsf.BSFExceptionExecute 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, java.lang.String lang, java.util.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
 
 
-