code.loop
Class Command
java.lang.Object
code.loop.Command
public class Command
- extends java.lang.Object
This class interprets textual commands and takes appropriate actions.
- Since:
- June 17, 2003
Modified By :
Sunita Marathe Aug 16, 2005: to support pkg qualified java module names
- Author:
- Sergio Antoy
|
Field Summary |
private java.io.BufferedReader |
in
|
private java.io.BufferedWriter |
out
|
|
Constructor Summary |
Command(java.io.BufferedReader in,
java.io.BufferedWriter out)
|
|
Method Summary |
private void |
abort()
|
boolean |
command(java.lang.String string)
Interpret and execute the command. |
private void |
help()
|
private void |
module(java.lang.String moduleName)
|
private void |
quit()
|
private void |
symbol(java.lang.String symbolName)
|
private void |
type(java.lang.String expression)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
in
private java.io.BufferedReader in
out
private java.io.BufferedWriter out
Command
public Command(java.io.BufferedReader in,
java.io.BufferedWriter out)
command
public boolean command(java.lang.String string)
- Interpret and execute the command.
- Parameters:
string - The textual command string with parameters.
- Returns:
- returns true if the RunEvalLoop should NOT go
back to reading std in after this call.
help
private void help()
throws java.io.IOException
- Throws:
java.io.IOException
quit
private void quit()
throws java.io.IOException
- Throws:
java.io.IOException
symbol
private void symbol(java.lang.String symbolName)
throws java.io.IOException
- Throws:
java.io.IOException
module
private void module(java.lang.String moduleName)
throws java.io.IOException
- Throws:
java.io.IOException
type
private void type(java.lang.String expression)
throws java.io.IOException
- Throws:
java.io.IOException
abort
private void abort()