public class CLICommandRegistry extends CommandRegistry implements org.aesh.command.registry.CommandRegistry
CommandRegistry.RegisterHandlerException| Constructor and Description |
|---|
CLICommandRegistry(CommandContextImpl ctx,
OperationCommandContainer op) |
| Modifier and Type | Method and Description |
|---|---|
org.aesh.command.container.CommandContainer |
addCommand(org.aesh.command.Command<?> command) |
org.aesh.command.container.CommandContainer |
addCommand(org.aesh.command.Command<?> command,
Map<String,String> renaming,
boolean thirdparty) |
org.aesh.command.container.CommandContainer |
addCommand(org.aesh.command.container.CommandContainer container) |
void |
addRegistrationListener(org.aesh.command.registry.CommandRegistry.CommandRegistrationListener listener) |
org.aesh.command.container.CommandContainer |
addThirdPartyCommand(org.aesh.command.Command<?> command,
Map<String,String> renaming) |
void |
completeCommandName(org.aesh.readline.completion.CompleteOperation completeOperation,
org.aesh.parser.ParsedLine parsedLine) |
org.aesh.command.impl.parser.CommandLineParser |
findCommand(String name,
String line) |
Set<String> |
getAllCommandNames() |
List<String> |
getAvailableAeshCommands() |
List<org.aesh.command.impl.parser.CommandLineParser<?>> |
getChildCommandParsers(String parent) |
org.aesh.command.container.CommandContainer<org.aesh.command.Command<CLICommandInvocation>,CLICommandInvocation> |
getCommand(String name,
String line) |
org.aesh.command.container.CommandContainer |
getCommandByAlias(String alias) |
String |
getCommandName(org.aesh.command.Command<CLICommandInvocation> command) |
boolean |
isLegacyCommand(String name) |
void |
registerHandler(CommandHandler handler,
boolean tabComplete,
String... names) |
CommandHandler |
remove(String cmdName) |
void |
removeCommand(String name) |
void |
removeRegistrationListener(org.aesh.command.registry.CommandRegistry.CommandRegistrationListener listener) |
getCommandHandler, getTabCompletionCommands, registerHandlerpublic CLICommandRegistry(CommandContextImpl ctx, OperationCommandContainer op)
public CommandHandler remove(String cmdName)
remove in class CommandRegistrypublic void registerHandler(CommandHandler handler, boolean tabComplete, String... names) throws CommandRegistry.RegisterHandlerException
registerHandler in class CommandRegistryCommandRegistry.RegisterHandlerExceptionpublic org.aesh.command.container.CommandContainer addCommand(org.aesh.command.Command<?> command)
throws CommandLineException,
org.aesh.command.parser.CommandLineParserException
CommandLineExceptionorg.aesh.command.parser.CommandLineParserExceptionpublic org.aesh.command.container.CommandContainer addThirdPartyCommand(org.aesh.command.Command<?> command,
Map<String,String> renaming)
throws org.aesh.command.parser.CommandLineParserException,
CommandLineException
org.aesh.command.parser.CommandLineParserExceptionCommandLineExceptionpublic org.aesh.command.container.CommandContainer addCommand(org.aesh.command.Command<?> command,
Map<String,String> renaming,
boolean thirdparty)
throws CommandLineException,
org.aesh.command.parser.CommandLineParserException
CommandLineExceptionorg.aesh.command.parser.CommandLineParserExceptionpublic org.aesh.command.container.CommandContainer addCommand(org.aesh.command.container.CommandContainer container)
throws CommandLineException
CommandLineExceptionpublic org.aesh.command.container.CommandContainer<org.aesh.command.Command<CLICommandInvocation>,CLICommandInvocation> getCommand(String name, String line) throws org.aesh.command.CommandNotFoundException
getCommand in interface org.aesh.command.registry.CommandRegistryorg.aesh.command.CommandNotFoundExceptionpublic void completeCommandName(org.aesh.readline.completion.CompleteOperation completeOperation,
org.aesh.parser.ParsedLine parsedLine)
completeCommandName in interface org.aesh.command.registry.CommandRegistrypublic Set<String> getAllCommandNames()
getAllCommandNames in interface org.aesh.command.registry.CommandRegistrypublic void removeCommand(String name)
public org.aesh.command.impl.parser.CommandLineParser findCommand(String name, String line) throws org.aesh.command.CommandNotFoundException
org.aesh.command.CommandNotFoundExceptionpublic org.aesh.command.container.CommandContainer getCommandByAlias(String alias) throws org.aesh.command.CommandNotFoundException
getCommandByAlias in interface org.aesh.command.registry.CommandRegistryorg.aesh.command.CommandNotFoundExceptionpublic List<org.aesh.command.impl.parser.CommandLineParser<?>> getChildCommandParsers(String parent) throws org.aesh.command.CommandNotFoundException
getChildCommandParsers in interface org.aesh.command.registry.CommandRegistryorg.aesh.command.CommandNotFoundExceptionpublic void addRegistrationListener(org.aesh.command.registry.CommandRegistry.CommandRegistrationListener listener)
addRegistrationListener in interface org.aesh.command.registry.CommandRegistrypublic void removeRegistrationListener(org.aesh.command.registry.CommandRegistry.CommandRegistrationListener listener)
removeRegistrationListener in interface org.aesh.command.registry.CommandRegistrypublic String getCommandName(org.aesh.command.Command<CLICommandInvocation> command) throws org.aesh.command.parser.CommandLineParserException
org.aesh.command.parser.CommandLineParserExceptionpublic boolean isLegacyCommand(String name)
Copyright © 2018 JBoss by Red Hat. All rights reserved.