Class ProfiledMultipleArgumentResolver<SENDER,T,PROFILE>
java.lang.Object
dev.rollczi.litecommands.argument.profile.ProfiledMultipleArgumentResolver<SENDER,T,PROFILE>
- All Implemented Interfaces:
Matcher<SENDER,,T> Parser<SENDER,,T> ArgumentResolverBase<SENDER,,T> MultipleArgumentResolver<SENDER,,T> Suggester<SENDER,,T> Rangeable<Argument<T>>
- Direct Known Subclasses:
AbstractCollectorArgumentResolver,FlagArgumentResolver,LiteralArgumentResolver,NullableArgumentResolver,QuotedStringArgumentResolver
@Experimental
public abstract class ProfiledMultipleArgumentResolver<SENDER,T,PROFILE>
extends Object
implements MultipleArgumentResolver<SENDER,T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanThis method is used to check if the argument can be parsed by the parser.protected booleanfinal Rangeprotected abstract Rangefinal booleanThis method is used to check if the input can be parsed by the parser.protected booleanfinal ParseResult<T> This method is used to parse the input and return the result.protected abstract ParseResult<T> final SuggestionResultsuggest(Invocation<SENDER> invocation, Argument<T> argument, SuggestionContext context) protected SuggestionResultsuggest(Invocation<SENDER> invocation, Argument<T> argument, SuggestionContext context, PROFILE profile)
-
Constructor Details
-
ProfiledMultipleArgumentResolver
-
-
Method Details
-
canParse
Description copied from interface:ParserThis method is used to check if the argument can be parsed by the parser. (pre-parsing check) -
canParse
-
parse
public final ParseResult<T> parse(Invocation<SENDER> invocation, Argument<T> argument, RawInput input) Description copied from interface:ParserThis method is used to parse the input and return the result. -
parse
protected abstract ParseResult<T> parse(Invocation<SENDER> invocation, Argument<T> argument, RawInput rawInput, PROFILE profile) -
getRange
-
getRange
-
suggest
public final SuggestionResult suggest(Invocation<SENDER> invocation, Argument<T> argument, SuggestionContext context) -
suggest
protected SuggestionResult suggest(Invocation<SENDER> invocation, Argument<T> argument, SuggestionContext context, PROFILE profile) -
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) -
match
-