public class InstantArgumentResolver<SENDER>
extends java.lang.Object
| Constructor and Description |
|---|
InstantArgumentResolver(MessageRegistry<SENDER> messageRegistry) |
| Modifier and Type | Method and Description |
|---|---|
Range |
getRange(Argument<UNIT> unitArgument) |
boolean |
match(Invocation<SENDER> invocation,
Argument<UNIT> argument,
RawInput input)
This method is used to check if the input can be parsed by the parser.
|
ParseResult<UNIT> |
parse(Invocation<SENDER> invocation,
Argument<UNIT> argument,
RawInput rawInput)
This method is used to parse the input and return the result.
|
SuggestionResult |
suggest(Invocation<SENDER> invocation,
Argument<UNIT> argument,
SuggestionContext context) |
public InstantArgumentResolver(MessageRegistry<SENDER> messageRegistry)
public ParseResult<UNIT> parse(Invocation<SENDER> invocation, Argument<UNIT> argument, RawInput rawInput)
Parserpublic boolean match(Invocation<SENDER> invocation, Argument<UNIT> argument, RawInput input)
Parserpublic SuggestionResult suggest(Invocation<SENDER> invocation, Argument<UNIT> argument, SuggestionContext context)
suggest in interface MultipleArgumentResolver<SENDER,UNIT extends java.time.temporal.TemporalAccessor>suggest in interface Suggester<SENDER,UNIT extends java.time.temporal.TemporalAccessor>