Interface CommandElement.Argument
- All Superinterfaces:
CommandElement
- Enclosing interface:
- CommandElement
Represents a command argument.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDetermines how an argument is parsed on a high level.Nested classes/interfaces inherited from interface com.xpdustry.distributor.api.command.CommandElement
CommandElement.Argument, CommandElement.Flag -
Method Summary
Modifier and TypeMethodDescriptiongetKind()Returns the kind of this argument.static CommandElement.Argumentof(String name, DescriptionFacade description, Set<String> aliases, CommandElement.Argument.Kind kind) Creates a new command argument.Methods inherited from interface com.xpdustry.distributor.api.command.CommandElement
getAliases, getDescription, getName
-
Method Details
-
of
static CommandElement.Argument of(String name, DescriptionFacade description, Set<String> aliases, CommandElement.Argument.Kind kind) Creates a new command argument.- Parameters:
name- the name of the argumentdescription- the description of the argumentaliases- the aliases of the argumentkind- the kind of the argument- Returns:
- the created argument
-
getKind
CommandElement.Argument.Kind getKind()Returns the kind of this argument.
-