CommandFactory#getCommandDefinition(String...)
| Modifier and Type | Field and Description |
|---|---|
| private List | aliases
The aliases for the command's name. |
| private final SortedMap | |
| private final String | |
| private String | |
| private String | |
| private final Map | |
| private final Map | |
| private boolean | |
| private String | |
| private final String[] | |
| private final SortedSet | pipeline
Stored as a SortedSet even though exposed as a list for easier internal management |
| private String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | |
| public void | |
| public int | compareTo(CommandDefinition
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public CommandArgumentDefinition | |
| public SortedMap | |
| public <T> SortedSet | getArguments(Class<T> argumentType)
Convenience method to return the arguments for this command which are of a given type. |
| public String | |
| public String | |
| public String | |
| public String | |
| public boolean | getHidden()
Hidden commands are ones that can be called via integrations, but should not be normally shown in help to users. |
| public boolean | getInternal()
Internal commands are ones that can be called programmatically, but should not be exposed directly and automatically through integrations. |
| public String | |
| public String[] | |
| public List | |
| public String | |
| public int | |
| public boolean | |
| public void | |
| public void | |
| public void | setGroupShortDescription(String[] group, String shortDescription)
Sets the short description of the given command group for help docs. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| aliases | back to summary |
|---|---|
| private List<String[]> aliases The aliases for the command's name. Aliases show up in the help output.
| |
| arguments | back to summary |
|---|---|
| private final SortedMap<String, CommandArgumentDefinition<?>> arguments | |
| concatName | back to summary |
|---|---|
| private final String concatName | |
| footer | back to summary |
|---|---|
| private String footer | |
| groupFooter | back to summary |
|---|---|
| private String groupFooter | |
| groupLongDescription | back to summary |
|---|---|
| private final Map<String, String> groupLongDescription | |
| groupShortDescription | back to summary |
|---|---|
| private final Map<String, String> groupShortDescription | |
| internal | back to summary |
|---|---|
| private boolean internal | |
| longDescription | back to summary |
|---|---|
| private String longDescription | |
| name | back to summary |
|---|---|
| private final String[] name | |
| pipeline | back to summary |
|---|---|
| private final SortedSet<CommandStep> pipeline Stored as a SortedSet even though exposed as a list for easier internal management | |
| shortDescription | back to summary |
|---|---|
| private String shortDescription | |
| CommandDefinition | back to summary |
|---|---|
| protected CommandDefinition(String[] name) | |
| add | back to summary |
|---|---|
| pack-priv void add(CommandStep step) | |
| add | back to summary |
|---|---|
| public void add(CommandArgumentDefinition<DataType> commandArg) | |
| addAlias | back to summary |
|---|---|
| public void addAlias(String[] alias) Add an alias to the command. | |
| compareTo | back to summary |
|---|---|
| public int compareTo(CommandDefinition o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getArgument | back to summary |
|---|---|
| public CommandArgumentDefinition Returns the given argument definition for this command. Handles argument name smoothing. Returns null if no argument matches. | |
| getArguments | back to summary |
|---|---|
| public SortedMap Returns the arguments for this command. | |
| getArguments | back to summary |
|---|---|
| public <T> SortedSet Convenience method to return the arguments for this command which are of a given type. | |
| getGroupHelpFooter | back to summary |
|---|---|
| public String getGroupHelpFooter() | |
| getGroupLongDescription | back to summary |
|---|---|
| public String getGroupLongDescription(String[] group) The long description of the given command group. Used in help docs. If multiple command commands set different descriptions for the group, which version will be shown in any rolled up help is undefined. | |
| getGroupShortDescription | back to summary |
|---|---|
| public String getGroupShortDescription(String[] group) The short description of the given command group. Used in help docs. | |
| getHelpFooter | back to summary |
|---|---|
| public String getHelpFooter() | |
| getHidden | back to summary |
|---|---|
| public boolean getHidden() Hidden commands are ones that can be called via integrations, but should not be normally shown in help to users. "Alias" or legacy commands are often marked as hidden commands. | |
| getInternal | back to summary |
|---|---|
| public boolean getInternal() Internal commands are ones that can be called programmatically, but should not be exposed directly and automatically through integrations. | |
| getLongDescription | back to summary |
|---|---|
| public String getLongDescription() The long description of the command. Used in help docs. | |
| getName | back to summary |
|---|---|
| public String[] getName() The fully qualified name of this command. | |
| getPipeline | back to summary |
|---|---|
| public List Returns the steps in the command's pipeline | |
| getShortDescription | back to summary |
|---|---|
| public String getShortDescription() The short description of the command. Used in help docs. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| is | back to summary |
|---|---|
| public boolean is(String... commandName) Return true if this command represents the given command | |
| setGroupHelpFooter | back to summary |
|---|---|
| public void setGroupHelpFooter(String groupFooter) | |
| setGroupLongDescription | back to summary |
|---|---|
| public void setGroupLongDescription(String[] group, String longDescription) | |
| setGroupShortDescription | back to summary |
|---|---|
| public void setGroupShortDescription(String[] group, String shortDescription) Sets the short description of the given command group for help docs. If multiple command commands set different descriptions for the group, which version will be shown in any rolled up help is undefined. | |
| setHelpFooter | back to summary |
|---|---|
| public void setHelpFooter(String footer) | |
| setHidden | back to summary |
|---|---|
| public void setHidden(boolean hidden) | |
| setInternal | back to summary |
|---|---|
| public void setInternal(boolean internal) | |
| setLongDescription | back to summary |
|---|---|
| public void setLongDescription(String longDescription) | |
| setShortDescription | back to summary |
|---|---|
| public void setShortDescription(String shortDescription) | |