@Deprecated
public class InteractiveShell
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
InteractiveShell()
Deprecated.
Default constructor, initializes uses new binding and system streams.
|
InteractiveShell(Binding binding,
java.io.InputStream in,
java.io.PrintStream out,
java.io.PrintStream err)
Deprecated.
Constructs a new InteractiveShell instance
|
InteractiveShell(java.lang.ClassLoader parent,
Binding binding,
java.io.InputStream in,
java.io.PrintStream out,
java.io.PrintStream err)
Deprecated.
Constructs a new InteractiveShell instance
|
InteractiveShell(java.io.InputStream in,
java.io.PrintStream out,
java.io.PrintStream err)
Deprecated.
Constructs a new InteractiveShell instance
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Deprecated.
Entry point when called directly.
|
protected java.lang.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 java.io.IOException
java.io.IOException
public InteractiveShell(java.io.InputStream in, java.io.PrintStream out, java.io.PrintStream err) throws java.io.IOException
in
- The input stream to useout
- The output stream to useerr
- The error stream to usejava.io.IOException
public InteractiveShell(Binding binding, java.io.InputStream in, java.io.PrintStream out, java.io.PrintStream err) throws java.io.IOException
binding
- The binding instancein
- The input stream to useout
- The output stream to useerr
- The error stream to usejava.io.IOException
public InteractiveShell(java.lang.ClassLoader parent, Binding binding, java.io.InputStream in, java.io.PrintStream out, java.io.PrintStream err) throws java.io.IOException
parent
- The parent ClassLoaderbinding
- The binding instancein
- The input stream to useout
- The output stream to useerr
- The error stream to usejava.io.IOException
public static void main(java.lang.String[] args)
public void run()
run
in interface java.lang.Runnable
public void setBeforeExecution(Closure beforeExecution)
beforeExecution
- The closure to executepublic void setAfterExecution(Closure afterExecution)
afterExecution
- The closure to executeprotected void reset()
protected java.lang.String read()