|
|||||||||
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,
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 |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 use
java.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 use
java.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 use
java.io.IOException
Method Detail |
---|
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()
|
Copyright © 2003-2011 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |