Class Parser
- java.lang.Object
-
- Parser
-
public class Parser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private CommandWords
aCommandWords
-
Constructor Summary
Constructors Constructor Description Parser()
Create a new Parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Command
getCommand(java.lang.String pInputLine)
Get a new command from the user.java.lang.String
getCommandString()
Returns a String with valid command words.
-
-
-
Field Detail
-
aCommandWords
private CommandWords aCommandWords
-
-
Constructor Detail
-
Parser
public Parser()
Create a new Parser.
-
-
Method Detail
-
getCommand
public Command getCommand(java.lang.String pInputLine)
Get a new command from the user. The command is read by parsing the 'inputLine'.
-
getCommandString
public java.lang.String getCommandString()
Returns a String with valid command words.
-
-