Package grammar.input.stdin.Command

Examples of grammar.input.stdin.Command.TenseCommand


    public Command interpret(Language language, Action action, String[] words, String[] wordsWithConj) {
      if (words[1].equalsIgnoreCase("verbs"))
        return new ModelVerbCommand(action, Arrays.asList(ModelVerb.values(language)), false, true);
      else
        return new TenseCommand(action, Arrays.asList(Tense.values(language)));
    }
View Full Code Here


          sb.append(' ');
          sb.append(token);
        }
      }
      tenses.add(Tense.valueOf(language, sb.toString().trim()));
      return new TenseCommand(action, tenses);
    }
View Full Code Here

      updateScope(tensesInScope, tenses, action);
      printScope(new TreeSet<Tense>(tensesInScope), "Tenses");
      return true;
    }
    else if (command instanceof TenseCommand) {
      TenseCommand tenseCommand = (TenseCommand) command;
      Set<Tense> tenses = new HashSet<Tense>(tenseCommand.getTenses());
      updateScope(tensesInScope, tenses, action);
      printScope(new TreeSet<Tense>(tensesInScope), "Tenses");
      return true;
    }
    else if (command instanceof TenseTagCommand) {
View Full Code Here

TOP

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

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.