org.crsh.cmdline.matcher.impl
Class MatcherImpl<T>
java.lang.Object
org.crsh.cmdline.matcher.Matcher<T>
org.crsh.cmdline.matcher.impl.MatcherImpl<T>
public class MatcherImpl<T>
- extends Matcher<T>
|
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)
|
CommandMatch<T,?,?> |
match(String name,
Map<String,?> options,
List<?> arguments)
|
private CommandMatch<T,?,?> |
match(Tokenizer tokenizer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
descriptor
private final ClassDescriptor<T> descriptor
- .
mainName
private final String mainName
- .
MatcherImpl
public MatcherImpl(ClassDescriptor<T> descriptor)
MatcherImpl
public MatcherImpl(String mainName,
ClassDescriptor<T> descriptor)
bilto
private List<LiteralValue> bilto(List<? extends Token.Literal> literals)
match
public CommandMatch<T,?,?> match(String name,
Map<String,?> options,
List<?> arguments)
- Specified by:
match in class Matcher<T>
match
public CommandMatch<T,?,?> match(String s)
- Specified by:
match in class Matcher<T>
match
private CommandMatch<T,?,?> match(Tokenizer tokenizer)
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.