Class OptionalArgumentResolver<SENDER>
java.lang.Object
dev.rollczi.litecommands.argument.resolver.optional.OptionalArgumentResolver<SENDER>
- All Implemented Interfaces:
Matcher<SENDER,,Optional> ParserChained<SENDER,,Optional> ArgumentResolverBaseChained<SENDER,,Optional> MultipleArgumentResolverChained<SENDER,,Optional> SuggesterChained<SENDER,,Optional> Rangeable<Argument<Optional>>
public class OptionalArgumentResolver<SENDER>
extends Object
implements MultipleArgumentResolverChained<SENDER,Optional>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(Invocation<SENDER> invocation, Argument<Optional> optionalArgument, RawInput input, ParserChainAccessor<SENDER> chainAccessor) suggest(Invocation<SENDER> invocation, Argument<Optional> argument, SuggestionContext context, SuggesterChainAccessor<SENDER> chainAccessor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.rollczi.litecommands.argument.parser.ParserChained
canParse, match
-
Constructor Details
-
OptionalArgumentResolver
-
-
Method Details
-
parse
public ParseResult<Optional> parse(Invocation<SENDER> invocation, Argument<Optional> optionalArgument, RawInput input, ParserChainAccessor<SENDER> chainAccessor) - Specified by:
parsein interfaceParserChained<SENDER,Optional>
-
getRange
-
suggest
public SuggestionResult suggest(Invocation<SENDER> invocation, Argument<Optional> argument, SuggestionContext context, SuggesterChainAccessor<SENDER> chainAccessor) - Specified by:
suggestin interfaceMultipleArgumentResolverChained<SENDER,Optional> - Specified by:
suggestin interfaceSuggesterChained<SENDER,Optional>
-