# Class QCommandParser

java.lang.Object
com.io7m.quarrel.core.internal.QCommandParser

All Implemented Interfaces:
  `QCommandParserType`

public final class QCommandParser extends Object implements QCommandParserType
The command parser.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `QCommandParser(QCommandParserConfiguration inConfiguration, QStrings inStrings)`
  The command parser.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `QCommandContextType`
  `execute(SortedMap<String,QCommandOrGroupType> tree, PrintWriter output, QCommandType command, List<String> arguments)`
  Parse arguments for the given command.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### QCommandParser

    public QCommandParser(QCommandParserConfiguration inConfiguration, QStrings inStrings)
    The command parser.
    Parameters:
      `inConfiguration` - The configuration
      `inStrings` - The strings

- ## Method Details

  - ### execute

    public QCommandContextType execute(SortedMap<String,QCommandOrGroupType> tree, PrintWriter output, QCommandType command, List<String> arguments) throws QException
    Description copied from interface: `QCommandParserType`
    Parse arguments for the given command.
    Specified by:
      `execute` in interface `QCommandParserType`
    Parameters:
      `tree` - The command tree
      `output` - The output that will be used if the command is executed
      `command` - The command
      `arguments` - The arguments
    Returns:
      A command context that can be used to execute the command
    Throws:
      `QException` - On errors