public abstract class AbstractCommandRegistry extends Object
| Constructor | Description |
|---|---|
AbstractCommandRegistry() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
alias(String alias,
String command) |
|
Map<String,String> |
commandAliases() |
|
Set<String> |
commandNames() |
|
SystemCompleter |
compileCompleters() |
|
CmdDesc |
doHelpDesc(String command,
List<String> info,
CmdDesc cmdDesc) |
|
Object |
execute(CommandRegistry.CommandSession session,
String command,
String[] args) |
|
CommandMethods |
getCommandMethods(String command) |
|
boolean |
hasCommand(String command) |
|
Object |
invoke(CommandRegistry.CommandSession session,
String command,
Object... args) |
|
void |
registerCommands(Map<String,CommandMethods> commandExecute) |
|
<T extends Enum<T>> |
registerCommands(Map<T,String> commandName,
Map<T,CommandMethods> commandExecute) |
|
Object |
registeredCommand(String command) |
|
<V extends Enum<V>> |
rename(V command,
String newName) |
|
void |
saveException(Exception exception) |
public <T extends Enum<T>> void registerCommands(Map<T,String> commandName, Map<T,CommandMethods> commandExecute)
public void registerCommands(Map<String,CommandMethods> commandExecute)
public Object execute(CommandRegistry.CommandSession session, String command, String[] args) throws Exception
Exceptionpublic Object invoke(CommandRegistry.CommandSession session, String command, Object... args) throws Exception
Exceptionpublic void saveException(Exception exception)
public boolean hasCommand(String command)
public SystemCompleter compileCompleters()
public CommandMethods getCommandMethods(String command)
Copyright © 2020. All rights reserved.