Package redempt.ordinate.dispatch
Class DispatchComponent<T>
java.lang.Object
redempt.ordinate.component.abstracts.CommandComponent<T>
redempt.ordinate.dispatch.DispatchComponent<T>
-
Constructor Summary
ConstructorDescriptionDispatchComponent
(CommandDispatcher<T> dispatcher, MessageFormatter<T> tooManyArgsError) -
Method Summary
Modifier and TypeMethodDescriptioncomplete
(CommandContext<T> context, Set<String> completions) int
int
int
parse
(CommandContext<T> context) Methods inherited from class redempt.ordinate.component.abstracts.CommandComponent
failure, failure, getDepth, getIndex, getMinConsumedArgs, getParent, setIndex, setParent, success
-
Constructor Details
-
DispatchComponent
-
-
Method Details
-
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>
-