Interface QCommandParserType
- All Known Implementing Classes:
QCommandParser
public interface QCommandParserType
A command parser.
-
Method Summary
Modifier and TypeMethodDescriptionexecute(SortedMap<String, QCommandOrGroupType> tree, PrintWriter output, QCommandType command, List<String> arguments) Parse arguments for the given command.
-
Method Details
-
execute
QCommandContextType execute(SortedMap<String, QCommandOrGroupType> tree, PrintWriter output, QCommandType command, List<String> arguments) throws QException Parse arguments for the given command.- Parameters:
tree- The command treeoutput- The output that will be used if the command is executedcommand- The commandarguments- The arguments- Returns:
- A command context that can be used to execute the command
- Throws:
QException- On errors
-