| java.lang.Object groovy.ui.InteractiveShell
InteractiveShell | public class InteractiveShell (Code) | | A simple interactive shell for evaluating groovy expressions
on the command line
author: James Strachan author: Chris Poirier author: Yuri Schimke author: Brian McCallistair author: Guillaume Laforge author: Dierk Koenig, include the inspect command, June 2005 version: $Revision: 3948 $ |
Method Summary | |
protected void | close() | public static void | main(String args) Entry point when called directly. | protected String | read() Reads a single statement from the command line. | protected void | reset() Resets the command-line processing machinery after use. | public void | run(String[] args) Reads commands and statements from input stream and processes them. |
InteractiveShell | public InteractiveShell()(Code) | | Default constructor.
|
InteractiveShell | public InteractiveShell(Binding binding, InputStream in, PrintStream out, PrintStream err)(Code) | | Constructs a new InteractiveShell instance
Parameters: binding - The binding instance Parameters: in - The input stream to use Parameters: out - The output stream to use Parameters: err - The error stream to use |
InteractiveShell | public InteractiveShell(ClassLoader parent, Binding binding, InputStream in, PrintStream out, PrintStream err)(Code) | | Constructs a new InteractiveShell instance
Parameters: parent - The parent ClassLoader Parameters: binding - The binding instance Parameters: in - The input stream to use Parameters: out - The output stream to use Parameters: err - The error stream to use |
close | protected void close()(Code) | | |
main | public static void main(String args)(Code) | | Entry point when called directly.
|
read | protected String read()(Code) | | Reads a single statement from the command line. Also identifies
and processes command shell commands. Returns the command text
on success, or null when command processing is complete.
NOTE: Changed, for now, to read until 'execute' is issued. At
'execute', the statement must be complete.
|
reset | protected void reset()(Code) | | Resets the command-line processing machinery after use.
|
run | public void run(String[] args) throws Exception(Code) | | Reads commands and statements from input stream and processes them.
|
|
|