Class Parser

java.lang.Object
  extended by Parser

public class Parser
extends Object


Constructor Summary
Parser(String[] commands)
          Create a parser to read from the terminal window.
 
Method Summary
 Command getCommand()
           
 String showCommands()
          Print out a list of valid command words.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser(String[] commands)
Create a parser to read from the terminal window.

Method Detail

getCommand

public Command getCommand()
Returns:
The next command from the user.

showCommands

public String showCommands()
Print out a list of valid command words.