Package redempt.ordinate.command
Class Command<T>
java.lang.Object
redempt.ordinate.component.abstracts.CommandComponent<T>
redempt.ordinate.command.Command<T>
- All Implemented Interfaces:
HelpProvider<T>
,Named
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHelp
(HelpBuilder<T> help) boolean
complete
(CommandContext<T> context, Set<String> completions) createContext
(T sender, SplittableList<Argument> args) int
int
getName()
getNames()
void
getParentPrefix
(HelpPage<T> page, List<String> parts) int
boolean
boolean
boolean
isRoot()
parse
(CommandContext<T> context) void
preparePipeline
(CommandManager<T> manager) void
Methods inherited from class redempt.ordinate.component.abstracts.CommandComponent
failure, failure, getDepth, getIndex, getMinConsumedArgs, getParent, setIndex, setParent, success
-
Constructor Details
-
Command
-
-
Method Details
-
createContext
-
setPostArgument
public void setPostArgument() -
isPostArgument
public boolean isPostArgument() -
hasDispatch
public boolean hasDispatch() -
canLookup
public boolean canLookup() -
isRoot
public boolean isRoot() -
getPipeline
-
preparePipeline
-
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>
-
getHelpComponent
-
addHelp
- Specified by:
addHelp
in interfaceHelpProvider<T>
-
parse
- Specified by:
parse
in classCommandComponent<T>
-
complete
- Overrides:
complete
in classCommandComponent<T>
-
getName
-
getNames
-
getParentPrefix
-
getSubcommands
-