Class QCommandTreeResolver
java.lang.Object
com.io7m.quarrel.core.QCommandTreeResolver
The function to resolve commands or groups from a command tree.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe targeted object does not exist.static final recordThe targeted object exists and is a command.static final recordThe targeted object exists and is a group.static enumThe targeted object is the root.static interfaceThe type of resolutions. -
Method Summary
Modifier and TypeMethodDescriptionResolve an object.
-
Method Details
-
resolve
public static QCommandTreeResolver.QResolutionType resolve(Map<String, QCommandOrGroupType> tree, List<String> args) Resolve an object.- Parameters:
tree- The command treeargs- The arguments- Returns:
- The result
-