|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.lang.GroovyShell
class GroovyShell extends GroovyObjectSupport
Represents a groovy shell capable of running arbitrary groovy scripts
Field Summary | |
---|---|
static String |
DEFAULT_CODE_BASE
|
static String[] |
EMPTY_ARGS
|
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(String[] 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, String[] args)
Runs the given script file name with the given command line arguments |
void
|
setProperty(String property, Object newValue)
|
Methods inherited from class GroovyObjectSupport | |
---|---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
static final String DEFAULT_CODE_BASE
@Deprecated static final String[] EMPTY_ARGS
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)
@Deprecated public void initializeBinding()
public static void main(String[] 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, String[] args)
public void setProperty(String property, Object newValue)
Copyright © 2003-2009 The Codehaus. All rights reserved.