Interface CommandHelp.Entry
- All Superinterfaces:
CommandHelp
- Enclosing interface:
- CommandHelp
Represents a specific command entry.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.xpdustry.distributor.api.command.CommandHelp
CommandHelp.Empty, CommandHelp.Entry, CommandHelp.Suggestion -
Method Summary
Modifier and TypeMethodDescriptionReturns the arguments of the command.Returns the description of the command.getFlags()Returns the flags of the command.Returns the syntax of the command.Returns the verbose description of the command.static CommandHelp.Entryof(String syntax, DescriptionFacade description, DescriptionFacade verboseDescription, List<CommandElement.Argument> arguments, List<CommandElement.Flag> flags) Creates a new command entry.
-
Method Details
-
of
static CommandHelp.Entry of(String syntax, DescriptionFacade description, DescriptionFacade verboseDescription, List<CommandElement.Argument> arguments, List<CommandElement.Flag> flags) Creates a new command entry.- Parameters:
syntax- the syntax of the commanddescription- the description of the commandverboseDescription- the verbose description of the commandarguments- the arguments of the commandflags- the flags of the command
-
getSyntax
String getSyntax()Returns the syntax of the command. -
getDescription
DescriptionFacade getDescription()Returns the description of the command. -
getVerboseDescription
DescriptionFacade getVerboseDescription()Returns the verbose description of the command. -
getArguments
List<CommandElement.Argument> getArguments()Returns the arguments of the command. -
getFlags
List<CommandElement.Flag> getFlags()Returns the flags of the command.
-