groovy.ui
@Deprecated public class InteractiveShell extends Object implements Runnable
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
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 useIOException
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 useIOException
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 useIOException
public static void main(String[] args)
public void run()
public void setBeforeExecution(Closure beforeExecution)
beforeExecution
- The closure to executepublic void setAfterExecution(Closure afterExecution)
afterExecution
- The closure to executeprotected void reset()
protected String read()