|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.ui.InteractiveShell
public class InteractiveShell
A simple interactive shell for evaluating groovy expressions on the command line
Constructor Summary | |
---|---|
InteractiveShell()
Default constructor. |
|
InteractiveShell(Binding binding,
java.io.InputStream in,
java.io.PrintStream out,
java.io.PrintStream err)
Constructs a new InteractiveShell instance |
|
InteractiveShell(java.lang.ClassLoader parent,
Binding binding,
java.io.InputStream in,
java.io.PrintStream out,
java.io.PrintStream err)
Constructs a new InteractiveShell instance |
|
InteractiveShell(java.io.InputStream in,
java.io.PrintStream out,
java.io.PrintStream err)
|
Method Summary | |
---|---|
protected void |
close()
|
static void |
main(java.lang.String[] args)
Entry point when called directly. |
protected java.lang.String |
read()
Reads a single statement from the command line. |
protected void |
reset()
Resets the command-line processing machinery after use. |
void |
run(java.lang.String[] args)
Reads commands and statements from input stream and processes them. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InteractiveShell()
public InteractiveShell(java.io.InputStream in, java.io.PrintStream out, java.io.PrintStream err)
public InteractiveShell(Binding binding, java.io.InputStream in, java.io.PrintStream out, java.io.PrintStream err)
binding
- The binding instancein
- The input stream to useout
- The output stream to useerr
- The error stream to usepublic InteractiveShell(java.lang.ClassLoader parent, Binding binding, java.io.InputStream in, java.io.PrintStream out, java.io.PrintStream err)
parent
- The parent ClassLoaderbinding
- The binding instancein
- The input stream to useout
- The output stream to useerr
- The error stream to useMethod Detail |
---|
public static void main(java.lang.String[] args)
public void run(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
protected void close()
protected void reset()
protected java.lang.String read()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |