org.crsh.cli.impl.invocation
Class InvocationMatcher<T>
java.lang.Object
org.crsh.cli.impl.invocation.InvocationMatcher<T>
-
public class InvocationMatcher<T>
- extends Object
-
- Author:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
descriptor
private final CommandDescriptor<T> descriptor
-
.
tokens
private Iterable<Token> tokens
-
.
InvocationMatcher
public InvocationMatcher(CommandDescriptor<T> descriptor)
InvocationMatcher
private InvocationMatcher(CommandDescriptor<T> descriptor,
Iterable<Token> tokens)
subordinate
public InvocationMatcher<T> subordinate(String name)
throws SyntaxException
-
- Throws:
SyntaxException
option
public InvocationMatcher<T> option(String optionName,
List<?> optionValue)
throws SyntaxException
-
- Throws:
SyntaxException
options
public InvocationMatcher<T> options(Map<String,List<?>> options)
throws SyntaxException
-
- Throws:
SyntaxException
arguments
public InvocationMatch<T> arguments(List<?> arguments)
throws SyntaxException
-
- Throws:
SyntaxException
parse
public InvocationMatch<T> parse(String s)
throws SyntaxException
-
- Throws:
SyntaxException
match
private InvocationMatch<T> match(Iterable<Token> tokens)
throws SyntaxException
-
- Throws:
SyntaxException
match
private InvocationMatch<T> match(Tokenizer tokenizer)
throws SyntaxException
-
- Throws:
SyntaxException
bilto
private List<LiteralValue> bilto(List<? extends Token.Literal> literals)
-
Copyright © 2015 eXo Platform SAS. All Rights Reserved.