Class ActionCommand.DelayedCompleter
- java.lang.Object
-
- org.apache.karaf.shell.impl.action.command.ActionCommand.DelayedCompleter
-
- All Implemented Interfaces:
Completer
- Enclosing class:
- ActionCommand
public static class ActionCommand.DelayedCompleter extends Object implements Completer
-
-
Constructor Summary
Constructors Constructor Description DelayedCompleter(Class<?> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
complete(Session session, CommandLine commandLine, List<String> candidates)
populate possible completion candidates.void
completeCandidates(Session session, CommandLine commandLine, List<Candidate> candidates)
-
-
-
Constructor Detail
-
DelayedCompleter
public DelayedCompleter(Class<?> clazz)
-
-
Method Detail
-
complete
public int complete(Session session, CommandLine commandLine, List<String> candidates)
Description copied from interface:Completer
populate possible completion candidates.- Specified by:
complete
in interfaceCompleter
- Parameters:
session
- the currentSession
commandLine
- the pre-parsedCommandLine
candidates
- a list to fill with possible completion candidates- Returns:
- the index of the
CommandLine
for which the completion will be relative
-
completeCandidates
public void completeCandidates(Session session, CommandLine commandLine, List<Candidate> candidates)
- Specified by:
completeCandidates
in interfaceCompleter
-
-