org.crsh.cmdline.matcher.impl
Class MatcherImpl<T>

java.lang.Object
  extended by org.crsh.cmdline.matcher.Matcher<T>
      extended by org.crsh.cmdline.matcher.impl.MatcherImpl<T>

public class MatcherImpl<T>
extends Matcher<T>

Version:
$Revision$
Author:
Julien Viet

Field Summary
private  ClassDescriptor<T> descriptor
          .
private  String mainName
          .
 
Constructor Summary
MatcherImpl(ClassDescriptor<T> descriptor)
           
MatcherImpl(String mainName, ClassDescriptor<T> descriptor)
           
 
Method Summary
private  Completion argument(MethodDescriptor<?> method, Completer completer)
           
private  List<LiteralValue> bilto(List<? extends Token.Literal> literals)
           
 CommandCompletion complete(Completer completer, String s)
           
private  Completion getCompletion(Completer completer, String s)
           
 CommandMatch<T,?,?> match(String s)
           
 
Methods inherited from class org.crsh.cmdline.matcher.Matcher
complete, createMatcher, createMatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptor

private final ClassDescriptor<T> descriptor
.


mainName

private final String mainName
.

Constructor Detail

MatcherImpl

public MatcherImpl(ClassDescriptor<T> descriptor)

MatcherImpl

public MatcherImpl(String mainName,
                   ClassDescriptor<T> descriptor)
Method Detail

bilto

private List<LiteralValue> bilto(List<? extends Token.Literal> literals)

match

public CommandMatch<T,?,?> match(String s)
Specified by:
match in class Matcher<T>

argument

private Completion argument(MethodDescriptor<?> method,
                            Completer completer)

complete

public CommandCompletion complete(Completer completer,
                                  String s)
                           throws CmdCompletionException
Specified by:
complete in class Matcher<T>
Throws:
CmdCompletionException

getCompletion

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


Copyright © 2012 eXo Platform SAS. All Rights Reserved.