@Beta @NonNullByDefault @NotThreadSafe public final class SourceExceptionParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
parse(org.antlr.v4.runtime.Lexer lexer,
org.antlr.v4.runtime.Parser parser,
Supplier<T> parseMethod,
StatementSourceReference ref)
Use a Lexer/Parser pair extracting the parser's root item.
|
static <T> T |
parse(org.antlr.v4.runtime.Recognizer<?,?> recognizer,
Supplier<T> parseMethod,
StatementSourceReference ref)
Parse a Recognizer extracting its root item.
|
public static <T> T parse(org.antlr.v4.runtime.Recognizer<?,?> recognizer,
Supplier<T> parseMethod,
StatementSourceReference ref)
recognizer - Recognizer to useparseMethod - Root item extractor methodref - Source referenceNullPointerException - if any argument is nullSourceException - if a parser error occurspublic static <T> T parse(org.antlr.v4.runtime.Lexer lexer,
org.antlr.v4.runtime.Parser parser,
Supplier<T> parseMethod,
StatementSourceReference ref)
lexer - lexer to useparser - parser to useparseMethod - Root item extractor methodref - Source referenceNullPointerException - if any argument is nullSourceException - if a parser error occursCopyright © 2019 OpenDaylight. All rights reserved.