Class ProfiledParser<SENDER,T,PROFILE>
java.lang.Object
dev.rollczi.litecommands.argument.profile.ProfiledParser<SENDER,T,PROFILE>
- Direct Known Subclasses:
JoinArgumentResolver
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProfiledParser(ArgumentProfileNamespace<PROFILE> namespace) -
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>
-
Constructor Details
-
ProfiledParser
-
-
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
-
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
-