|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.tools.shell.Shell
org.codehaus.groovy.tools.shell.Groovysh
class Groovysh extends Shell
An interactive shell for evaluating Groovy code from the command-line (aka. groovysh).
Constructor Summary | |
Groovysh(ClassLoader classLoader, Binding binding, IO io, Closure registrar)
|
|
Groovysh(ClassLoader classLoader, Binding binding, IO io)
|
|
Groovysh(Binding binding, IO io)
|
|
Groovysh(IO io)
|
|
Groovysh()
|
Method Summary | |
---|---|
Object
|
execute(String line)
Execute a single line, where the line may be a command or Groovy code (complete or incomplete). |
protected Object
|
executeCommand(String line)
|
File
|
getUserStateDirectory()
|
int
|
run(String[] args)
|
int
|
run(String commandLine)
|
Methods inherited from class Shell | |
---|---|
leftShift, leftShift, parseLine |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Property Detail |
---|
final BufferManager buffers
final Closure defaultErrorHook
final Closure defaultResultHook
Closure errorHook
History history
final List imports
final Interpreter interp
final Parser parser
Closure resultHook
InteractiveShellRunner runner
Constructor Detail |
---|
public Groovysh(ClassLoader classLoader, Binding binding, IO io, Closure registrar)
public Groovysh(ClassLoader classLoader, Binding binding, IO io)
public Groovysh(Binding binding, IO io)
public Groovysh(IO io)
public Groovysh()
Method Detail |
---|
Object execute(String line)
protected Object executeCommand(String line)
File getUserStateDirectory()
int run(String[] args)
int run(String commandLine)
Copyright © 2003-2009 The Codehaus. All rights reserved.