| Modifier | Constructor and Description |
|---|---|
protected |
ProfiledParser(ArgumentProfileNamespace<PROFILE> namespace) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canParse(Argument<T> argument)
This method is used to check if the argument can be parsed by the parser.
|
protected boolean |
canParse(Argument<T> argument,
PROFILE profile) |
Range |
getRange(Argument<T> argument) |
protected abstract Range |
getRange(Argument<T> argument,
PROFILE meta) |
boolean |
match(Invocation<SENDER> invocation,
Argument<T> argument,
RawInput input)
This method is used to check if the input can be parsed by the parser.
|
protected boolean |
match(Invocation<SENDER> invocation,
Argument<T> argument,
RawInput input,
PROFILE profile) |
ParseResult<T> |
parse(Invocation<SENDER> invocation,
Argument<T> argument,
RawInput input)
This method is used to parse the input and return the result.
|
protected abstract ParseResult<T> |
parse(Invocation<SENDER> invocation,
Argument<T> argument,
RawInput rawInput,
PROFILE profile) |
protected ProfiledParser(ArgumentProfileNamespace<PROFILE> namespace)
public final boolean canParse(Argument<T> argument)
Parserpublic final ParseResult<T> parse(Invocation<SENDER> invocation, Argument<T> argument, RawInput input)
Parserprotected abstract ParseResult<T> parse(Invocation<SENDER> invocation, Argument<T> argument, RawInput rawInput, PROFILE profile)
public final boolean match(Invocation<SENDER> invocation, Argument<T> argument, RawInput input)
Parser