public final class CompletionMatcher<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
private CommandDescriptor<T> |
descriptor
.
|
private String |
mainName
.
|
| Constructor and Description |
|---|
CompletionMatcher(CommandDescriptor<T> descriptor) |
CompletionMatcher(String mainName,
CommandDescriptor<T> descriptor) |
| Modifier and Type | Method and Description |
|---|---|
private Completion |
argument(CommandDescriptor<?> method,
Completer completer) |
private Completion |
getCompletion(Completer completer,
String s) |
CompletionMatch |
match(Completer completer,
String s) |
CompletionMatch |
match(String s) |
private final CommandDescriptor<T> descriptor
public CompletionMatcher(CommandDescriptor<T> descriptor)
public CompletionMatcher(String mainName, CommandDescriptor<T> descriptor)
public final CompletionMatch match(String s) throws CompletionException
CompletionExceptionpublic CompletionMatch match(Completer completer, String s) throws CompletionException
CompletionExceptionprivate Completion argument(CommandDescriptor<?> method, Completer completer)
private Completion getCompletion(Completer completer, String s) throws CompletionException
CompletionExceptionCopyright © 2013 eXo Platform SAS. All Rights Reserved.