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) |
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
ClassNotFoundExceptionpublic groovy.lang.GroovyClassLoader getGroovyClassLoader()
public Object eval(File file, Map<String,Object> context) throws IOException
IOExceptionpublic Object eval(File file, groovy.lang.Binding context) throws IOException
IOExceptionpublic Class<?> compile(File file) throws IOException
IOExceptionpublic groovy.lang.Script getScript(File file, groovy.lang.Binding context) throws IOException
IOExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.