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