All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class duckMachine.operatingSystem.TextCommandReader

java.lang.Object
   |
   +----duckMachine.operatingSystem.TextCommandReader

public class TextCommandReader
extends Object
A textual command reader. This is a little parser that reads every line of input and returns an appropriate ShellCommand to the shell. The run and step commands usually take a visitor argument but to save typing, the last visitor is saved and used if no argument is given.


Constructor Index

 o TextCommandReader(InputStream)

Method Index

 o getNextCommand()

Constructors

 o TextCommandReader
 public TextCommandReader(InputStream is)

Methods

 o getNextCommand
 public ShellCommand getNextCommand() throws ShellE
Throws: ShellE
If an error occured while processing the command.

All Packages  Class Hierarchy  This Package  Previous  Next  Index