public class GroovyScripting extends Object
Constructor and Description |
---|
GroovyScripting(ClassLoader parent) |
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() |
groovy.lang.Script |
getScript(File file,
groovy.lang.Binding context) |
Class<?> |
loadClass(String className) |
public GroovyScripting(ClassLoader parent)
public GroovyScripting(ClassLoader parent, org.codehaus.groovy.control.CompilerConfiguration cfg)
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
Copyright © 2013 Nuxeo SA. All Rights Reserved.