public class GroovyScripting extends Object
Constructor and Description |
---|
GroovyScripting() |
GroovyScripting(boolean debug) |
GroovyScripting(ClassLoader parent,
boolean debug) |
GroovyScripting(ClassLoader parent,
org.codehaus.groovy.control.CompilerConfiguration cfg) |
Modifier and Type | Method and Description |
---|---|
void |
addClasspath(String cp) |
void |
addClasspathUrl(URL cp) |
void |
clearCache() |
Class<?> |
compile(File file) |
Object |
eval(File file,
groovy.lang.Binding context) |
Object |
eval(File file,
Map<String,Object> context) |
groovy.lang.GroovyClassLoader |
getGroovyClassLoader() |
static ClassLoader |
getParentLoader() |
groovy.lang.Script |
getScript(File file,
groovy.lang.Binding context) |
groovy.lang.Script |
getScript(String content,
groovy.lang.Binding context) |
Class<?> |
loadClass(String className) |
public GroovyScripting()
public GroovyScripting(boolean debug)
public GroovyScripting(ClassLoader parent, boolean debug)
public GroovyScripting(ClassLoader parent, org.codehaus.groovy.control.CompilerConfiguration cfg)
public static ClassLoader getParentLoader()
public void addClasspath(String cp)
public void addClasspathUrl(URL cp)
public void clearCache()
public Class<?> loadClass(String className) throws ClassNotFoundException
ClassNotFoundException
public groovy.lang.GroovyClassLoader getGroovyClassLoader()
public Object eval(File file, Map<String,Object> context) throws IOException
IOException
public Object eval(File file, groovy.lang.Binding context) throws IOException
IOException
public Class<?> compile(File file) throws IOException
IOException
public groovy.lang.Script getScript(File file, groovy.lang.Binding context) throws IOException
IOException
public groovy.lang.Script getScript(String content, groovy.lang.Binding context)
Copyright © 2013 Nuxeo SA. All Rights Reserved.