Package redempt.ordinate.component
Class SubcommandLookupComponent<T>
java.lang.Object
redempt.ordinate.component.abstracts.CommandComponent<T>
redempt.ordinate.component.SubcommandLookupComponent<T>
- All Implemented Interfaces:
CommandParent<T>
,HelpProvider<T>
public class SubcommandLookupComponent<T>
extends CommandComponent<T>
implements HelpProvider<T>, CommandParent<T>
-
Constructor Summary
ConstructorDescriptionSubcommandLookupComponent
(List<Command<T>> commands, MessageFormatter<T> invalidSubcommand) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHelp
(HelpBuilder<T> help) complete
(CommandContext<T> context, Set<String> completions) int
int
int
int
parse
(CommandContext<T> context) void
-
Constructor Details
-
SubcommandLookupComponent
-
-
Method Details
-
setParent
- Overrides:
setParent
in classCommandComponent<T>
-
getMinConsumedArgs
public int getMinConsumedArgs()- Overrides:
getMinConsumedArgs
in classCommandComponent<T>
-
getMaxConsumedArgs
public int getMaxConsumedArgs()- Specified by:
getMaxConsumedArgs
in classCommandComponent<T>
-
getMaxParsedObjects
public int getMaxParsedObjects()- Specified by:
getMaxParsedObjects
in classCommandComponent<T>
-
getPriority
public int getPriority()- Specified by:
getPriority
in classCommandComponent<T>
-
parse
- Specified by:
parse
in classCommandComponent<T>
-
complete
- Overrides:
complete
in classCommandComponent<T>
-
addHelp
- Specified by:
addHelp
in interfaceHelpProvider<T>
-
getSubcommands
- Specified by:
getSubcommands
in interfaceCommandParent<T>
-