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