Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Author:
  Mike Grogan, A. Sundararajan

Constructor Summary
Constructor and Description
`GroovyCompiledScript(GroovyScriptEngineImpl engine, Class clasz)`

Method Summary
Modifier and Type | Method and Description
--- | ---
`Object` | `eval(ScriptContext context)`
`ScriptEngine` | `getEngine()`

Methods inherited from class javax.script.CompiledScript
`eval, eval`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### GroovyCompiledScript

    public GroovyCompiledScript(GroovyScriptEngineImpl engine,
                                Class clasz)

Method Detail

### eval

    public Object eval(ScriptContext context)
                throws ScriptException

  Specified by:
    `eval` in class `CompiledScript`
  Throws:
    `ScriptException`

### getEngine

    public ScriptEngine getEngine()

  Specified by:
    `getEngine` in class `CompiledScript`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2003-2010 The Codehaus. All rights reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD