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:
- org.apache.bsf.BSFEngine, java.util.EventListener, java.beans.PropertyChangeListener
- public class CachingGroovyEngine
- extends GroovyEngine
A Caching implementation of the GroovyEngine
- Author:
- James Birchfield
| Fields inherited from class org.apache.bsf.util.BSFEngineImpl |
classLoader, classPath, dbgmgr, declaredBeans, lang, mgr, tempDir |
|
Method Summary |
java.lang.Object |
eval(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
Evaluate an expression. |
void |
exec(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
Execute a script. |
void |
initialize(org.apache.bsf.BSFManager mgr,
java.lang.String lang,
java.util.Vector declaredBeans)
Initialize the engine. |
| Methods inherited from class org.apache.bsf.util.BSFEngineImpl |
compileApply, compileExpr, compileScript, disconnectedDebuggerNotify, getSpecificDebuggingInterface, placeBreakpointAtLine, placeBreakpointAtOffset, propertyChange, removeBreakpoint, setEntryExit, terminate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_ARGS
private static final java.lang.String[] EMPTY_ARGS
evalScripts
private java.util.Map evalScripts
execScripts
private java.util.Map execScripts
context
private Binding context
parent
private java.lang.ClassLoader parent
loader
private GroovyClassLoader loader
CachingGroovyEngine
public CachingGroovyEngine()
eval
public java.lang.Object eval(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
throws org.apache.bsf.BSFException
- Evaluate an expression.
- Specified by:
eval in interface org.apache.bsf.BSFEngine- Overrides:
eval in class GroovyEngine
- Throws:
org.apache.bsf.BSFException
exec
public void exec(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
throws org.apache.bsf.BSFException
- Execute a script.
- Specified by:
exec in interface org.apache.bsf.BSFEngine- Overrides:
exec in class GroovyEngine
- Throws:
org.apache.bsf.BSFException
initialize
public void initialize(org.apache.bsf.BSFManager mgr,
java.lang.String lang,
java.util.Vector declaredBeans)
throws org.apache.bsf.BSFException
- Initialize the engine.
- Specified by:
initialize in interface org.apache.bsf.BSFEngine- Overrides:
initialize in class GroovyEngine
- Throws:
org.apache.bsf.BSFException
Copyright © 2003-2005 The Codehaus. All Rights Reserved.