[Java] Class GroovyCompiledScript
- 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
Constructor and description |
---|
GroovyCompiledScript
(GroovyScriptEngineImpl engine, Class<?> clazz) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public Object |
eval(ScriptContext context) | |
public ScriptEngine |
getEngine() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class CompiledScript | eval, eval, eval, getEngine, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public GroovyCompiledScript(GroovyScriptEngineImpl engine, Class<?> clazz)
Method Detail
public Object eval(ScriptContext context)
public ScriptEngine getEngine()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/jsr223/GroovyCompiledScript.html