org.crsh.cli.impl.completion
Class CompletionMatcher<T>

java.lang.Object
  extended by org.crsh.cli.impl.completion.CompletionMatcher<T>

public final class CompletionMatcher<T>
extends Object

Author:
Julien Viet

Field Summary
private  CommandDescriptor<T> descriptor
          .
 
Constructor Summary
CompletionMatcher(CommandDescriptor<T> descriptor)
           
 
Method Summary
private  Completion argument(CommandDescriptor<?> method, Completer completer, Delimiter delimiter)
           
private  Completion getCompletion(Completer completer, String s)
           
 CompletionMatch match(Completer completer, String s)
           
 CompletionMatch match(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptor

private final CommandDescriptor<T> descriptor
.

Constructor Detail

CompletionMatcher

public CompletionMatcher(CommandDescriptor<T> descriptor)
Method Detail

match

public final CompletionMatch match(String s)
                            throws CompletionException
Throws:
CompletionException

match

public CompletionMatch match(Completer completer,
                             String s)
                      throws CompletionException
Throws:
CompletionException

argument

private Completion argument(CommandDescriptor<?> method,
                            Completer completer,
                            Delimiter delimiter)

getCompletion

private Completion getCompletion(Completer completer,
                                 String s)
                          throws CompletionException
Throws:
CompletionException


Copyright © 2015 eXo Platform SAS. All Rights Reserved.