Class CommandWords

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String[] VALID_COMMANDS  
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandWords()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCommandList()
      Liste des commandes
      boolean isCommand​(java.lang.String pString)
      Vérifie si un String correspond bien à une commande
      • Methods inherited from class java.lang.Object

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

      • VALID_COMMANDS

        private static final java.lang.String[] VALID_COMMANDS
    • Method Detail

      • isCommand

        public boolean isCommand​(java.lang.String pString)
        Vérifie si un String correspond bien à une commande
        Returns:
        true si le String correspond à une commande valide.
      • getCommandList

        public java.lang.String getCommandList()
        Liste des commandes
        Returns:
        la liste des commandes sous la forme "go quit help"