# Class QCommandTreeResolver

java.lang.Object
com.io7m.quarrel.core.QCommandTreeResolver

public final class QCommandTreeResolver extends Object
The function to resolve commands or groups from a command tree.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static final record`
  `QCommandTreeResolver.QResolutionErrorDoesNotExist`
  The targeted object does not exist.
  `static final record`
  `QCommandTreeResolver.QResolutionOKCommand`
  The targeted object exists and is a command.
  `static final record`
  `QCommandTreeResolver.QResolutionOKGroup`
  The targeted object exists and is a group.
  `static enum`
  `QCommandTreeResolver.QResolutionRoot`
  The targeted object is the root.
  `static interface`
  `QCommandTreeResolver.QResolutionType`
  The type of resolutions.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static QCommandTreeResolver.QResolutionType`
  `resolve(Map<String,QCommandOrGroupType> tree, List<String> args)`
  Resolve an object.

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

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

- ## Method Details

  - ### resolve

    public static QCommandTreeResolver.QResolutionType resolve(Map<String,QCommandOrGroupType> tree, List<String> args)
    Resolve an object.
    Parameters:
      `tree` - The command tree
      `args` - The arguments
    Returns:
      The result