Class CommandComponent<T>
java.lang.Object
redempt.ordinate.component.abstracts.CommandComponent<T>
- Direct Known Subclasses:
ArgumentComponent,ArgumentPropagationComponent,BooleanFlagComponent,Command,ConstraintComponent,ContextComponent,DescriptionComponent,DispatchComponent,FlagComponent,HelpSubcommandComponent,SubcommandLookupComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomplete(CommandContext<T> context, Set<String> completions) failure()intgetDepth()intgetIndex()abstract intabstract intintabstract intabstract CommandResult<T>parse(CommandContext<T> context) voidsetIndex(int index) voidsuccess()
-
Constructor Details
-
CommandComponent
public CommandComponent()
-
-
Method Details
-
setParent
-
setIndex
public void setIndex(int index) -
getIndex
public int getIndex() -
getDepth
public int getDepth() -
getParent
-
success
-
failure
-
failure
-
complete
-
getMinConsumedArgs
public int getMinConsumedArgs() -
getMaxConsumedArgs
public abstract int getMaxConsumedArgs() -
getMaxParsedObjects
public abstract int getMaxParsedObjects() -
getPriority
public abstract int getPriority() -
parse
-