Package com.io7m.quarrel.core.internal
Class QCommandParser
java.lang.Object
com.io7m.quarrel.core.internal.QCommandParser
- All Implemented Interfaces:
QCommandParserType
The command parser.
-
Constructor Summary
ConstructorsConstructorDescriptionQCommandParser
(QCommandParserConfiguration inConfiguration, QStrings inStrings) The command parser. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(SortedMap<String, QCommandOrGroupType> tree, PrintWriter output, QCommandType command, List<String> arguments) Parse arguments for the given command.
-
Constructor Details
-
QCommandParser
The command parser.- Parameters:
inConfiguration
- The configurationinStrings
- The strings
-
-
Method Details
-
execute
public QCommandContextType execute(SortedMap<String, QCommandOrGroupType> tree, PrintWriter output, QCommandType command, List<String> arguments) throws QExceptionDescription copied from interface:QCommandParserType
Parse arguments for the given command.- Specified by:
execute
in interfaceQCommandParserType
- 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
-