T - parsed value type@FunctionalInterface public interface Parser<T>
| Modifier and Type | Method and Description |
|---|---|
T |
parse(ParseSession session,
ParseContext ctx,
boolean complete)
Parse text from the given parse context.
|
T parse(ParseSession session, ParseContext ctx, boolean complete)
Generally speaking, this method may assume that any whitespace allowed before the item being parsed has already been skipped over (that's a matter for the containing parser).
session - parse sessionctx - input to parsecomplete - false if parse is "for real", true if only for tab completion calculationParseException - if parse fails, or if complete is true and there are valid completionsCopyright © 2017. All rights reserved.