public abstract class ArgumentResolver<SENDER,TYPE> extends java.lang.Object implements MultipleArgumentResolver<SENDER,TYPE>
| Constructor and Description |
|---|
ArgumentResolver() |
| Modifier and Type | Method and Description |
|---|---|
Range |
getRange(Argument<TYPE> argument) |
boolean |
match(Invocation<SENDER> invocation,
Argument<TYPE> argument,
RawInput input)
This method is used to check if the input can be parsed by the parser.
|
protected boolean |
match(Invocation<SENDER> invocation,
Argument<TYPE> context,
java.lang.String argument) |
ParseResult<TYPE> |
parse(Invocation<SENDER> invocation,
Argument<TYPE> argument,
RawInput rawInput)
This method is used to parse the input and return the result.
|
protected abstract ParseResult<TYPE> |
parse(Invocation<SENDER> invocation,
Argument<TYPE> context,
java.lang.String argument) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsuggestpublic final ParseResult<TYPE> parse(Invocation<SENDER> invocation, Argument<TYPE> argument, RawInput rawInput)
Parserprotected abstract ParseResult<TYPE> parse(Invocation<SENDER> invocation, Argument<TYPE> context, java.lang.String argument)
public final boolean match(Invocation<SENDER> invocation, Argument<TYPE> argument, RawInput input)
Parserprotected boolean match(Invocation<SENDER> invocation, Argument<TYPE> context, java.lang.String argument)