Class CommandWords


  • public class CommandWords
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandWords()
      Constructor - initialise the command words.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCommandList()
      returns a String of all valid commands.
      boolean isCommand​(java.lang.String aString)
      Check whether a given String is a valid command word.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommandWords

        public CommandWords()
        Constructor - initialise the command words.
    • Method Detail

      • isCommand

        public boolean isCommand​(java.lang.String aString)
        Check whether a given String is a valid command word. Return true if it is, false if it isn't.
      • getCommandList

        public java.lang.String getCommandList()
        returns a String of all valid commands.