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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHelp(HelpBuilder<T> help) booleancomplete(CommandContext<T> context, Set<String> completions) createContext(T sender, SplittableList<Argument> args) intintgetName()getNames()voidgetParentPrefix(HelpPage<T> page, List<String> parts) intbooleanbooleanbooleanisRoot()parse(CommandContext<T> context) voidpreparePipeline(CommandManager<T> manager) voidMethods 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:
getMaxConsumedArgsin classCommandComponent<T>
-
getMaxParsedObjects
public int getMaxParsedObjects()- Specified by:
getMaxParsedObjectsin classCommandComponent<T>
-
getPriority
public int getPriority()- Specified by:
getPriorityin classCommandComponent<T>
-
getHelpComponent
-
addHelp
- Specified by:
addHelpin interfaceHelpProvider<T>
-
parse
- Specified by:
parsein classCommandComponent<T>
-
complete
- Overrides:
completein classCommandComponent<T>
-
getName
-
getNames
-
getParentPrefix
-
getSubcommands
-