public class SimpleCommandMapping extends java.lang.Object implements CommandMapping
Constructor and Description |
---|
SimpleCommandMapping(CommandCallable callable,
java.lang.String... alias)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAllAliases()
Get a list of all aliases.
|
CommandCallable |
getCallable()
Get the callable
|
Description |
getDescription()
Get the
Description form the callable. |
java.lang.String |
getPrimaryAlias()
Get the primary alias.
|
java.lang.String |
toString() |
public SimpleCommandMapping(CommandCallable callable, java.lang.String... alias)
callable
- the command callablealias
- a list of all aliases, where the first one is the primary onepublic java.lang.String getPrimaryAlias()
CommandMapping
getPrimaryAlias
in interface CommandMapping
public java.lang.String[] getAllAliases()
CommandMapping
getAllAliases
in interface CommandMapping
public CommandCallable getCallable()
CommandMapping
getCallable
in interface CommandMapping
public Description getDescription()
CommandMapping
Description
form the callable.getDescription
in interface CommandMapping
public java.lang.String toString()
toString
in class java.lang.Object