Class InstantArgumentResolver<SENDER>
java.lang.Object
dev.rollczi.litecommands.argument.resolver.standard.InstantArgumentResolver<SENDER>
- All Implemented Interfaces:
Matcher<SENDER,,Instant> Parser<SENDER,,Instant> ArgumentResolverBase<SENDER,,Instant> MultipleArgumentResolver<SENDER,,Instant> Suggester<SENDER,,Instant> Rangeable<Argument<Instant>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis method is used to check if the input can be parsed by the parser.This method is used to parse the input and return the result.suggest(Invocation<SENDER> invocation, Argument<Instant> argument, SuggestionContext context)
-
Constructor Details
-
InstantArgumentResolver
-
-
Method Details
-
parse
public ParseResult<Instant> parse(Invocation<SENDER> invocation, Argument<Instant> argument, RawInput rawInput) Description copied from interface:ParserThis method is used to parse the input and return the result.- Specified by:
parsein interfaceParser<SENDER,UNIT extends TemporalAccessor>
-
match
Description copied from interface:ParserThis method is used to check if the input can be parsed by the parser. It is used in the suggestion system. (you can override it to provide custom behavior and improve performance)- Specified by:
matchin interfaceMatcher<SENDER,UNIT extends TemporalAccessor> - Specified by:
matchin interfaceParser<SENDER,UNIT extends TemporalAccessor>
-
suggest
public SuggestionResult suggest(Invocation<SENDER> invocation, Argument<Instant> argument, SuggestionContext context) - Specified by:
suggestin interfaceMultipleArgumentResolver<SENDER,UNIT extends TemporalAccessor> - Specified by:
suggestin interfaceSuggester<SENDER,UNIT extends TemporalAccessor>
-
getRange
-