|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a groovy shell capable of running arbitrary groovy scripts
Field Summary | |
---|---|
def |
EMPTY_ARGS
|
CompilerConfiguration |
config
|
Binding |
context
|
int |
counter
|
GroovyClassLoader |
loader
|
Constructor Summary | |
GroovyShell()
|
|
GroovyShell(Binding binding)
|
|
GroovyShell(CompilerConfiguration config)
|
|
GroovyShell(Binding binding, CompilerConfiguration config)
|
|
GroovyShell(ClassLoader parent, Binding binding)
|
|
GroovyShell(ClassLoader parent)
|
|
GroovyShell(ClassLoader parent, Binding binding, CompilerConfiguration config)
|
|
GroovyShell(GroovyShell shell)
Creates a child shell using a new ClassLoader which uses the parent shell's class loader as its parent |
Method Summary | |
---|---|
GroovyClassLoader |
getClassLoader()
|
Binding |
getContext()
|
Object |
getProperty(String property)
|
void |
initializeBinding()
|
static void |
main(def args)
|
void |
resetLoadedClasses()
|
Object |
run(File scriptFile, List list)
A helper method which runs the given script file with the given command line arguments |
Object |
run(String scriptText, String fileName, List list)
A helper method which runs the given cl script with the given command line arguments |
Object |
run(File scriptFile, def args)
Runs the given script file name with the given command line arguments |
void |
setProperty(String property, Object newValue)
|
Constructor Detail |
---|
public GroovyShell()
public GroovyShell(Binding binding)
public GroovyShell(CompilerConfiguration config)
public GroovyShell(Binding binding, CompilerConfiguration config)
public GroovyShell(ClassLoader parent, Binding binding)
public GroovyShell(ClassLoader parent)
public GroovyShell(ClassLoader parent, Binding binding, CompilerConfiguration config)
public GroovyShell(GroovyShell shell)
Method Detail |
---|
public GroovyClassLoader getClassLoader()
public Binding getContext()
public Object getProperty(String property)
public void initializeBinding()
public static void main(def args)
public void resetLoadedClasses()
public Object run(File scriptFile, List list)
public Object run(String scriptText, String fileName, List list)
public Object run(File scriptFile, def args)
public void setProperty(String property, Object newValue)