Home
last modified time | relevance | path

Searched refs:commandName (Results 1 – 5 of 5) sorted by relevance

/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DDicttool.java76 public static void addCommand(final String commandName, final Class<? extends Command> cls) { in addCommand() argument
77 sCommands.put(commandName, cls); in addCommand()
80 private static Command getCommandInstance(final String commandName) { in getCommandInstance() argument
82 return sCommands.get(commandName).newInstance(); in getCommandInstance()
84 throw new RuntimeException(commandName + " is not installed"); in getCommandInstance()
86 throw new RuntimeException(commandName + " is not installed"); in getCommandInstance()
92 for (final String commandName : sCommands.keySet()) { in help()
93 System.out.println("*** " + commandName); in help()
94 System.out.println(getCommandInstance(commandName).getHelp()); in help()
99 private static boolean isCommand(final String commandName) { in isCommand() argument
[all …]
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Dcommand_utils.cpp30 /* static */ CommandType CommandUtils::getCommandType(const std::string &commandName) { in getCommandType() argument
31 if (commandName == InfoExecutor::COMMAND_NAME) { in getCommandType()
33 } else if (commandName == DiffExecutor::COMMAND_NAME) { in getCommandType()
35 } else if (commandName == MakedictExecutor::COMMAND_NAME) { in getCommandType()
37 } else if (commandName == HeaderExecutor::COMMAND_NAME) { in getCommandType()
39 } else if (commandName == HelpExecutor::COMMAND_NAME) { in getCommandType()
47 const std::string &commandName) { in printCommandUnknownMessage() argument
49 commandName.c_str(), programName.c_str(), HelpExecutor::COMMAND_NAME); in printCommandUnknownMessage()
Dcommand_utils.h40 static CommandType getCommandType(const std::string &commandName);
42 const std::string &commandName);
Darguments_parser.cpp49 void ArgumentsParser::printUsage(const std::string &commandName, in printUsage() argument
51 printf("Usage: %s", commandName.c_str()); in printUsage()
Darguments_parser.h107 void printUsage(const std::string &commandName, const std::string &description) const;