Package grammar.input.stdin.Command

Examples of grammar.input.stdin.Command.ConjugatedVerbCommand


      words = Arrays.copyOfRange(words, 2, words.length);
      List<ConjugatedVerb> conjugatedVerbs = new ArrayList<ConjugatedVerb>();
      for (String word : words) {
        conjugatedVerbs.add(ConjugatedVerb.valueOf(language, word));
      }
      return new ConjugatedVerbCommand(action, conjugatedVerbs);
    }
View Full Code Here


      updateScope(verbsInScope, conjugatedVerbs, action);
      printScope(new TreeSet<ConjugatedVerb>(verbsInScope), "Verbs");
      return true;
    }
    else if (command instanceof ConjugatedVerbCommand) {
      ConjugatedVerbCommand conjugatedVerbCommand = (ConjugatedVerbCommand) command;
      Set<ConjugatedVerb> conjugatedVerbs = new HashSet<ConjugatedVerb>(conjugatedVerbCommand.getConjugatedVerbs());
      updateScope(verbsInScope, conjugatedVerbs, action);
      printScope(new TreeSet<ConjugatedVerb>(verbsInScope), "Verbs");
      return true;
    }
    else if (command instanceof VerbClassCommand) {
View Full Code Here

TOP

Related Classes of grammar.input.stdin.Command.ConjugatedVerbCommand

Copyright © 2018 www.massapicom. 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.