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
          .
private  String mainName
          .
 
Constructor Summary
CompletionMatcher(CommandDescriptor<T> descriptor)
           
CompletionMatcher(String mainName, CommandDescriptor<T> descriptor)
           
 
Method Summary
private  Completion argument(CommandDescriptor<?> method, Completer completer)
           
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
.


mainName

private final String mainName
.

Constructor Detail

CompletionMatcher

public CompletionMatcher(CommandDescriptor<T> descriptor)

CompletionMatcher

public CompletionMatcher(String mainName,
                         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)

getCompletion

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


Copyright © 2014 eXo Platform SAS. All Rights Reserved.