public abstract class AbstractAntlr4Parser
extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractAntlr4Parser.ParserInputSupplier |
static class |
AbstractAntlr4Parser.Walker |
static interface |
AbstractAntlr4Parser.WalkerSupplier |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAntlr4Parser() |
protected |
AbstractAntlr4Parser(SyntaxErrorFormatter syntaxErrorFormatter) |
| Modifier and Type | Method and Description |
|---|---|
protected @NotNull org.antlr.v4.runtime.Token[] |
analyseStartStopToken(org.antlr.v4.runtime.Token offendingSymbol,
org.antlr.v4.runtime.RecognitionException ex) |
protected abstract @NotNull RuntimeException |
createException(@NotNull String parserInput,
@NotNull org.antlr.v4.runtime.Token startToken,
@NotNull org.antlr.v4.runtime.Token stopToken,
@NotNull String formattedMessage,
@NotNull String errorMsg,
org.antlr.v4.runtime.RecognitionException ex) |
protected <L extends org.antlr.v4.runtime.Lexer & AbstractAntlr4Parser.ParserInputSupplier,P extends org.antlr.v4.runtime.Parser,C extends org.antlr.v4.runtime.ParserRuleContext> |
parse(L lexer,
@NotNull java.util.function.Function<L,P> parserSupplier,
@NotNull java.util.function.Function<P,C> ruleExecutor) |
protected <L extends org.antlr.v4.runtime.Lexer & AbstractAntlr4Parser.ParserInputSupplier,P extends org.antlr.v4.runtime.Parser,C extends org.antlr.v4.runtime.ParserRuleContext,R> |
parse(L lexer,
@NotNull java.util.function.Function<L,P> parserSupplier,
@NotNull java.util.function.Function<P,C> ruleExecutor,
@NotNull org.antlr.v4.runtime.tree.ParseTreeListener listener,
@NotNull java.util.function.Function<C,R> contextResultExtractor) |
protected void |
syntaxError(@NotNull String parserInput,
@NotNull org.antlr.v4.runtime.ParserRuleContext ctx,
@NotNull String errorMsg) |
protected void |
syntaxError(@NotNull String parserInput,
@NotNull org.antlr.v4.runtime.Token token,
@NotNull String errorMsg) |
protected AbstractAntlr4Parser()
protected AbstractAntlr4Parser(SyntaxErrorFormatter syntaxErrorFormatter)
protected <L extends org.antlr.v4.runtime.Lexer & AbstractAntlr4Parser.ParserInputSupplier,P extends org.antlr.v4.runtime.Parser,C extends org.antlr.v4.runtime.ParserRuleContext,R> R parse(@NotNull L lexer, @NotNull @NotNull java.util.function.Function<L,P> parserSupplier, @NotNull @NotNull java.util.function.Function<P,C> ruleExecutor, @NotNull @NotNull org.antlr.v4.runtime.tree.ParseTreeListener listener, @NotNull @NotNull java.util.function.Function<C,R> contextResultExtractor)
@NotNull protected <L extends org.antlr.v4.runtime.Lexer & AbstractAntlr4Parser.ParserInputSupplier,P extends org.antlr.v4.runtime.Parser,C extends org.antlr.v4.runtime.ParserRuleContext> C parse(@NotNull L lexer, @NotNull @NotNull java.util.function.Function<L,P> parserSupplier, @NotNull @NotNull java.util.function.Function<P,C> ruleExecutor)
@Contract(value="null, null -> fail", pure=true) @NotNull protected @NotNull org.antlr.v4.runtime.Token[] analyseStartStopToken(org.antlr.v4.runtime.Token offendingSymbol, org.antlr.v4.runtime.RecognitionException ex)
@Contract(value="_, _, _ -> fail") protected void syntaxError(@NotNull @NotNull String parserInput, @NotNull @NotNull org.antlr.v4.runtime.ParserRuleContext ctx, @NotNull @NotNull String errorMsg)
@Contract(value="_, _, _ -> fail") protected void syntaxError(@NotNull @NotNull String parserInput, @NotNull @NotNull org.antlr.v4.runtime.Token token, @NotNull @NotNull String errorMsg)
@NotNull protected abstract @NotNull RuntimeException createException(@NotNull @NotNull String parserInput, @NotNull @NotNull org.antlr.v4.runtime.Token startToken, @NotNull @NotNull org.antlr.v4.runtime.Token stopToken, @NotNull @NotNull String formattedMessage, @NotNull @NotNull String errorMsg, org.antlr.v4.runtime.RecognitionException ex)