Examples of MoodCommand


Examples of grammar.input.stdin.Command.MoodCommand

      words = Arrays.copyOfRange(words, 1, words.length-1);
      List<Mood> moods = new ArrayList<Mood>();
      for (String word : words) {
        moods.add(Mood.valueOf(language, word));
      }
      return new MoodCommand(action, moods);
    }
View Full Code Here

Examples of grammar.input.stdin.Command.MoodCommand

      updateScope(verbsInScope, verbs, action);
      printScope(new TreeSet<ConjugatedVerb>(verbsInScope), "Verbs");
      return true;
    }
    else if (command instanceof MoodCommand) {
      MoodCommand moodCommand = (MoodCommand) command;
      Set<Mood> moods = new HashSet<Mood>(moodCommand.getMoods());
      Set<Tense> tenses = new HashSet<Tense>();
      for (Mood mood : moods) {
        tenses.addAll(mood.getTenses());
      }
      updateScope(tensesInScope, tenses, action);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.