public interface Parser<SENDER,PARSED> extends Rangeable<Argument<PARSED>>
| Modifier and Type | Method and Description |
|---|---|
default boolean |
canParse(Invocation<SENDER> invocation,
Argument<PARSED> argument)
This method is used to check if the argument can be parsed by the parser.
|
default boolean |
matchParse(Invocation<SENDER> invocation,
Argument<PARSED> argument,
RawInput input)
This method is used to check if the input can be parsed by the parser.
|
ParseResult<PARSED> |
parse(Invocation<SENDER> invocation,
Argument<PARSED> argument,
RawInput input)
This method is used to parse the input and return the result.
|
ParseResult<PARSED> parse(Invocation<SENDER> invocation, Argument<PARSED> argument, RawInput input)
default boolean canParse(Invocation<SENDER> invocation, Argument<PARSED> argument)
@ApiStatus.Experimental default boolean matchParse(Invocation<SENDER> invocation, Argument<PARSED> argument, RawInput input)