public class CommandInfo extends Object
Modifier and Type | Field and Description |
---|---|
static Builder<CommandInfo> |
COMMAND_INFO_BUILDER |
Constructor and Description |
---|
CommandInfo(long arity,
List<String> flags,
long firstKey,
long lastKey,
long step,
List<String> aclCategories,
List<String> tips,
List<String> subcommands) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAclCategories()
An array of simple strings that are the ACL categories to which the command belongs
|
long |
getArity()
Arity is the number of arguments a command expects.
|
long |
getFirstKey()
The position of the command's first key name argument
|
List<String> |
getFlags()
Command flags
|
long |
getLastKey()
The position of the command's last key name argument
Commands that accept a single key have both first key and last key set to 1
|
long |
getStep()
This value is the step, or increment, between the first key and last key values where the keys are
|
List<String> |
getSubcommands()
All the command's subcommands, if any
|
List<String> |
getTips()
Helpful information about the command
|
public static final Builder<CommandInfo> COMMAND_INFO_BUILDER
public long getArity()
public long getFirstKey()
public long getLastKey()
public long getStep()
public List<String> getAclCategories()
Copyright © 2022. All rights reserved.