Package org.jboss.as.cli
Class CommandCompleter
- java.lang.Object
-
- org.jboss.as.cli.CommandCompleter
-
- All Implemented Interfaces:
CommandLineCompleter,CLICommandCompleter.Completer
public class CommandCompleter extends Object implements CommandLineCompleter, CLICommandCompleter.Completer
Tab-completer for commands starting with '/'.- Author:
- Alexey Loubyansky
-
-
Constructor Summary
Constructors Constructor Description CommandCompleter(CommandRegistry cmdRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllCommandNames(CommandContext ctx, org.aesh.complete.AeshCompleteOperation op)intcomplete(CommandContext ctx, String buffer, int cursor, List<String> candidates)voidcomplete(CommandContext ctx, DefaultCallbackHandler parsedCmd, org.aesh.complete.AeshCompleteOperation op)
-
-
-
Constructor Detail
-
CommandCompleter
public CommandCompleter(CommandRegistry cmdRegistry)
-
-
Method Detail
-
complete
public int complete(CommandContext ctx, String buffer, int cursor, List<String> candidates)
- Specified by:
completein interfaceCommandLineCompleter
-
addAllCommandNames
public void addAllCommandNames(CommandContext ctx, org.aesh.complete.AeshCompleteOperation op)
- Specified by:
addAllCommandNamesin interfaceCLICommandCompleter.Completer
-
complete
public void complete(CommandContext ctx, DefaultCallbackHandler parsedCmd, org.aesh.complete.AeshCompleteOperation op)
- Specified by:
completein interfaceCLICommandCompleter.Completer
-
-