|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.ui.InteractiveShell
@Deprecated class InteractiveShell extends Object
A simple interactive shell for evaluating groovy expressions on the command line (aka. groovysh).
Nested Class Summary | |
---|---|
class |
InteractiveShell.CommandNameCompletor
|
Constructor Summary | |
InteractiveShell()
Default constructor, initializes uses new binding and system streams. |
|
InteractiveShell(InputStream in, PrintStream out, PrintStream err)
Constructs a new InteractiveShell instance |
|
InteractiveShell(Binding binding, InputStream in, PrintStream out, PrintStream err)
Constructs a new InteractiveShell instance |
|
InteractiveShell(ClassLoader parent, Binding binding, InputStream in, PrintStream out, PrintStream err)
Constructs a new InteractiveShell instance |
Method Summary | |
---|---|
static void
|
main(String[] args)
Entry point when called directly. |
protected String
|
read()
Reads a single statement from the command line. |
protected void
|
reset()
Resets the command-line processing machinery after use. |
void
|
run()
Reads commands and statements from input stream and processes them. |
void
|
setAfterExecution(Closure afterExecution)
A closure that is executed after the execution of the last script. |
void
|
setBeforeExecution(Closure beforeExecution)
A closure that is executed before the exection of a given script |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Constructor Detail |
---|
public InteractiveShell()
public InteractiveShell(InputStream in, PrintStream out, PrintStream err)
public InteractiveShell(Binding binding, InputStream in, PrintStream out, PrintStream err)
public InteractiveShell(ClassLoader parent, Binding binding, InputStream in, PrintStream out, PrintStream err)
Method Detail |
---|
public static void main(String[] args)
protected String read()
protected void reset()
public void run()
public void setAfterExecution(Closure afterExecution)
public void setBeforeExecution(Closure beforeExecution)
Copyright © 2003-2009 The Codehaus. All rights reserved.