|
Groovy 1.7.8 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgroovy.ui.InteractiveShell
@Deprecated public class InteractiveShell extends Object
A simple interactive shell for evaluating groovy expressions on the command line (aka. groovysh).
| 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 execution of a given script |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Constructor Detail |
|---|
public InteractiveShell()
public InteractiveShell(InputStream in, PrintStream out, PrintStream err)
in - The input stream to useout - The output stream to useerr - The error stream to use
public InteractiveShell(Binding binding, InputStream in, PrintStream out, PrintStream err)
binding - The binding instancein - The input stream to useout - The output stream to useerr - The error stream to use
public InteractiveShell(ClassLoader parent, Binding binding, InputStream in, PrintStream out, PrintStream err)
parent - The parent ClassLoaderbinding - The binding instancein - The input stream to useout - The output stream to useerr - The error stream to use
| Method Detail |
|---|
public static void main(String[] args)
protected String read()
protected void reset()
public void run()
public void setAfterExecution(Closure afterExecution)
afterExecution - The closure to execute
public void setBeforeExecution(Closure beforeExecution)
beforeExecution - The closure to execute
Copyright © 2003-2010 The Codehaus. All rights reserved.