Module ultimategdbot.api
Class CommandDocumentationEntry
- java.lang.Object
-
- com.github.alex1304.ultimategdbot.api.command.CommandDocumentationEntry
-
public final class CommandDocumentationEntry extends Object
Represents a documentation entry. An entry is a subsection of the documentation of the command. An entry shows one possible syntax for the command, a description of what this part of the command does, and the different flags that can be used.
-
-
Constructor Summary
Constructors Constructor Description CommandDocumentationEntry(Translator translator, String syntax, String description, Map<String,FlagInformation> flagInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Gets the description of what the command does, according to the usage represented by this entry.Map<String,FlagInformation>getFlagInfo()Gets information on the flags that can be used with this part of the command.StringgetSyntax()Gets the syntax of the command relevant for this entry.
-
-
-
Constructor Detail
-
CommandDocumentationEntry
public CommandDocumentationEntry(Translator translator, String syntax, String description, Map<String,FlagInformation> flagInfo)
-
-
Method Detail
-
getSyntax
public String getSyntax()
Gets the syntax of the command relevant for this entry.- Returns:
- the syntax
-
getDescription
public String getDescription()
Gets the description of what the command does, according to the usage represented by this entry.- Returns:
- the description
-
getFlagInfo
public Map<String,FlagInformation> getFlagInfo()
Gets information on the flags that can be used with this part of the command.- Returns:
- the information on available flags
-
-