org.crsh.cmdline.matcher
Class Matcher<T>

java.lang.Object
  extended by org.crsh.cmdline.matcher.Matcher<T>
Direct Known Subclasses:
MatcherImpl

public abstract class Matcher<T>
extends Object

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
Matcher()
           
 
Method Summary
abstract  CommandCompletion complete(Completer completer, String s)
           
 CommandCompletion complete(String s)
           
static
<T> Matcher<T>
createMatcher(ClassDescriptor<T> descriptor)
           
static
<T> Matcher<T>
createMatcher(String mainName, ClassDescriptor<T> descriptor)
           
abstract  CommandMatch<T,?,?> match(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Matcher

public Matcher()
Method Detail

createMatcher

public static <T> Matcher<T> createMatcher(String mainName,
                                           ClassDescriptor<T> descriptor)

createMatcher

public static <T> Matcher<T> createMatcher(ClassDescriptor<T> descriptor)

complete

public final CommandCompletion complete(String s)
                                 throws CmdCompletionException
Throws:
CmdCompletionException

complete

public abstract CommandCompletion complete(Completer completer,
                                           String s)
                                    throws CmdCompletionException
Throws:
CmdCompletionException

match

public abstract CommandMatch<T,?,?> match(String s)


Copyright © 2012 eXo Platform SAS. All Rights Reserved.