public class InvocationMatcher<T> extends Object
Modifier and Type | Field and Description |
---|---|
private CommandDescriptor<T> |
descriptor
.
|
private Iterable<Token> |
tokens
.
|
Modifier | Constructor and Description |
---|---|
|
InvocationMatcher(CommandDescriptor<T> descriptor) |
private |
InvocationMatcher(CommandDescriptor<T> descriptor,
Iterable<Token> tokens) |
Modifier and Type | Method and Description |
---|---|
InvocationMatch<T> |
arguments(List<?> arguments) |
private List<LiteralValue> |
bilto(List<? extends Token.Literal> literals) |
private InvocationMatch<T> |
match(Iterable<Token> tokens) |
private InvocationMatch<T> |
match(Tokenizer tokenizer) |
InvocationMatcher<T> |
option(String optionName,
List<?> optionValue) |
InvocationMatcher<T> |
options(Map<String,List<?>> options) |
InvocationMatch<T> |
parse(String s) |
InvocationMatcher<T> |
subordinate(String name) |
private final CommandDescriptor<T> descriptor
public InvocationMatcher(CommandDescriptor<T> descriptor)
private InvocationMatcher(CommandDescriptor<T> descriptor, Iterable<Token> tokens)
public InvocationMatcher<T> subordinate(String name) throws SyntaxException
SyntaxException
public InvocationMatcher<T> option(String optionName, List<?> optionValue) throws SyntaxException
SyntaxException
public InvocationMatcher<T> options(Map<String,List<?>> options) throws SyntaxException
SyntaxException
public InvocationMatch<T> arguments(List<?> arguments) throws SyntaxException
SyntaxException
public InvocationMatch<T> parse(String s) throws SyntaxException
SyntaxException
private InvocationMatch<T> match(Iterable<Token> tokens) throws SyntaxException
SyntaxException
private InvocationMatch<T> match(Tokenizer tokenizer) throws SyntaxException
SyntaxException
private List<LiteralValue> bilto(List<? extends Token.Literal> literals)
Copyright © 2015 eXo Platform SAS. All Rights Reserved.