Package org.jboss.as.cli.operation
Class OperationRequestCompleter
- java.lang.Object
-
- org.jboss.as.cli.operation.OperationRequestCompleter
-
- All Implemented Interfaces:
CommandLineCompleter
public class OperationRequestCompleter extends Object implements CommandLineCompleter
- Author:
- Alexey Loubyansky
-
-
Field Summary
Fields Modifier and Type Field Description static CommandLineCompleterARG_VALUE_COMPLETERstatic EscapeSelectorESCAPE_SELECTORstatic EscapeSelectorESCAPE_SELECTOR_INSIDE_QUOTESEscape selector for quoted strings - only " and \ chars should be escapedstatic OperationRequestCompleterINSTANCE
-
Constructor Summary
Constructors Constructor Description OperationRequestCompleter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcomplete(CommandContext ctx, String buffer, int cursor, List<String> candidates)intcomplete(CommandContext ctx, OperationCandidatesProvider candidatesProvider, String buffer, int cursor, List<String> candidates)intcomplete(CommandContext ctx, ParsedCommandLine parsedCmd, String buffer, int cursor, List<String> candidates)protected intcomplete(CommandContext ctx, ParsedCommandLine parsedCmd, OperationCandidatesProvider candidatesProvider, String buffer, int cursor, List<String> candidates)protected CommandLineCompletergetValueCompleter(CommandContext ctx, Iterable<CommandArgument> allArgs, int index)protected CommandLineCompletergetValueCompleter(CommandContext ctx, Iterable<CommandArgument> allArgs, String argName)
-
-
-
Field Detail
-
INSTANCE
public static final OperationRequestCompleter INSTANCE
-
ARG_VALUE_COMPLETER
public static final CommandLineCompleter ARG_VALUE_COMPLETER
-
ESCAPE_SELECTOR
public static final EscapeSelector ESCAPE_SELECTOR
-
ESCAPE_SELECTOR_INSIDE_QUOTES
public static final EscapeSelector ESCAPE_SELECTOR_INSIDE_QUOTES
Escape selector for quoted strings - only " and \ chars should be escaped
-
-
Method Detail
-
complete
public int complete(CommandContext ctx, String buffer, int cursor, List<String> candidates)
- Specified by:
completein interfaceCommandLineCompleter
-
complete
public int complete(CommandContext ctx, OperationCandidatesProvider candidatesProvider, String buffer, int cursor, List<String> candidates)
-
complete
public int complete(CommandContext ctx, ParsedCommandLine parsedCmd, String buffer, int cursor, List<String> candidates)
-
complete
protected int complete(CommandContext ctx, ParsedCommandLine parsedCmd, OperationCandidatesProvider candidatesProvider, String buffer, int cursor, List<String> candidates)
-
getValueCompleter
protected CommandLineCompleter getValueCompleter(CommandContext ctx, Iterable<CommandArgument> allArgs, String argName)
-
getValueCompleter
protected CommandLineCompleter getValueCompleter(CommandContext ctx, Iterable<CommandArgument> allArgs, int index)
-
-