Package org.codehaus.groovy.jsr223
Class GroovyCompiledScript
java.lang.Object
javax.script.CompiledScript
org.codehaus.groovy.jsr223.GroovyCompiledScript
public class GroovyCompiledScript extends CompiledScript
Used to represent compiled Groovy scripts. Such scripts may be executed repeatedly
by Groovy's
ScriptEngine using the eval method without reparsing overheads.
Adapted from original by Mike Grogan and A. Sundararajan-
Constructor Summary
Constructors Constructor Description GroovyCompiledScript(GroovyScriptEngineImpl engine, Class<?> clazz) -
Method Summary
Modifier and Type Method Description Objecteval(ScriptContext context)ScriptEnginegetEngine()
-
Constructor Details
-
Method Details
-
eval
- Specified by:
evalin classCompiledScript- Throws:
ScriptException
-
getEngine
- Specified by:
getEnginein classCompiledScript
-