Package grammar.input.stdin.Command

Examples of grammar.input.stdin.Command.VerbClassCommand


      words = Arrays.copyOfRange(words, 0, words.length-2);
      List<VerbTag> verbClasses = new ArrayList<VerbTag>();
      for (String word : words) {
        verbClasses.add(VerbTag.valueOf(Utilities.asConstantName(word)));
      }
      return new VerbClassCommand(action, verbClasses);
    }
View Full Code Here


      updateScope(verbsInScope, conjugatedVerbs, action);
      printScope(new TreeSet<ConjugatedVerb>(verbsInScope), "Verbs");
      return true;
    }
    else if (command instanceof VerbClassCommand) {
      VerbClassCommand verbClassCommand = (VerbClassCommand) command;
      Set<VerbTag> verbTags = new HashSet<VerbTag>(verbClassCommand.getVerbTags());
      Set<ConjugatedVerb> verbs = new HashSet<ConjugatedVerb>();
      for (VerbTag verbTag : verbTags) {
        verbs.addAll(verbTag.getMembers());
      }
      updateScope(verbsInScope, verbs, action);
View Full Code Here

TOP

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

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.