Class Parser


  • public class Parser
    extends java.lang.Object
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.