Groovy 2.2.1

org.codehaus.groovy.jsr223
[Java] Class GroovyScriptEngineImpl

java.lang.Object
  javax.script.AbstractScriptEngine
      org.codehaus.groovy.jsr223.GroovyScriptEngineImpl
All Implemented Interfaces:
Compilable, Invocable

public class GroovyScriptEngineImpl
extends AbstractScriptEngine

Field Summary
 
Fields inherited from class AbstractScriptEngine
ARGV, FILENAME, ENGINE, ENGINE_VERSION, NAME, LANGUAGE, LANGUAGE_VERSION
 
Constructor Summary
GroovyScriptEngineImpl()

GroovyScriptEngineImpl(GroovyClassLoader classLoader)

 
Method Summary
CompiledScript compile(String scriptSource)

CompiledScript compile(Reader reader)

Bindings createBindings()

Object eval(Reader reader, ScriptContext ctx)

Object eval(String script, ScriptContext ctx)

GroovyClassLoader getClassLoader()

ScriptEngineFactory getFactory()

Object getInterface(Class clazz)

Object getInterface(Object thiz, Class clazz)

Object invokeFunction(String name, Object... args)

Object invokeMethod(Object thiz, String name, Object... args)

void setClassLoader(GroovyClassLoader classLoader)

 
Methods inherited from class AbstractScriptEngine
eval, eval, eval, eval, setBindings, getBindings, get, put, getContext, setContext, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, eval, eval, createBindings, getFactory
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

GroovyScriptEngineImpl

public GroovyScriptEngineImpl()


GroovyScriptEngineImpl

public GroovyScriptEngineImpl(GroovyClassLoader classLoader)


 
Method Detail

compile

public CompiledScript compile(String scriptSource)


compile

public CompiledScript compile(Reader reader)


createBindings

public Bindings createBindings()


eval

public Object eval(Reader reader, ScriptContext ctx)


eval

public Object eval(String script, ScriptContext ctx)


getClassLoader

public GroovyClassLoader getClassLoader()


getFactory

public ScriptEngineFactory getFactory()


getInterface

public Object getInterface(Class clazz)


getInterface

public Object getInterface(Object thiz, Class clazz)


invokeFunction

public Object invokeFunction(String name, Object... args)


invokeMethod

public Object invokeMethod(Object thiz, String name, Object... args)


setClassLoader

public void setClassLoader(GroovyClassLoader classLoader)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.