public abstract class AbstractAntlr4Compiler
extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractAntlr4Compiler.CompilerInputSupplier |
static class |
AbstractAntlr4Compiler.Walker |
static interface |
AbstractAntlr4Compiler.WalkerSupplier |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAntlr4Compiler() |
| Modifier and Type | Method and Description |
|---|---|
protected <L extends org.antlr.v4.runtime.Lexer & AbstractAntlr4Compiler.CompilerInputSupplier,P extends org.antlr.v4.runtime.Parser,C extends org.antlr.v4.runtime.ParserRuleContext> |
compile(L lexer,
@NotNull java.util.function.Function<L,P> parserSupplier,
@NotNull java.util.function.Function<P,C> executeRule) |
protected <L extends org.antlr.v4.runtime.Lexer & AbstractAntlr4Compiler.CompilerInputSupplier,P extends org.antlr.v4.runtime.Parser,C extends org.antlr.v4.runtime.ParserRuleContext,R> |
compile(L lexer,
@NotNull java.util.function.Function<L,P> parserSupplier,
@NotNull java.util.function.Function<P,C> executeRule,
@NotNull org.antlr.v4.runtime.tree.ParseTreeListener listener,
@NotNull java.util.function.Function<C,R> resultExtractor) |
protected @NotNull RuntimeException |
createException(@NotNull String errorMsg,
@NotNull String compilerInput,
int startIndex,
int stopIndex,
@NotNull String visibleMarker,
org.antlr.v4.runtime.RecognitionException ex) |
protected void |
syntaxError(@NotNull String compilerInput,
@NotNull org.antlr.v4.runtime.ParserRuleContext ctx,
@NotNull String errorMsg) |
protected void |
syntaxError(@NotNull String compilerInput,
@NotNull org.antlr.v4.runtime.Token token,
@NotNull String errorMsg,
org.antlr.v4.runtime.RecognitionException ex) |
@NotNull protected <L extends org.antlr.v4.runtime.Lexer & AbstractAntlr4Compiler.CompilerInputSupplier,P extends org.antlr.v4.runtime.Parser,C extends org.antlr.v4.runtime.ParserRuleContext> C compile(@NotNull L lexer, @NotNull @NotNull java.util.function.Function<L,P> parserSupplier, @NotNull @NotNull java.util.function.Function<P,C> executeRule)
protected <L extends org.antlr.v4.runtime.Lexer & AbstractAntlr4Compiler.CompilerInputSupplier,P extends org.antlr.v4.runtime.Parser,C extends org.antlr.v4.runtime.ParserRuleContext,R> R compile(@NotNull L lexer, @NotNull @NotNull java.util.function.Function<L,P> parserSupplier, @NotNull @NotNull java.util.function.Function<P,C> executeRule, @NotNull @NotNull org.antlr.v4.runtime.tree.ParseTreeListener listener, @NotNull @NotNull java.util.function.Function<C,R> resultExtractor)
@Contract(value="_, _, _ -> fail")
protected void syntaxError(@NotNull
@NotNull String compilerInput,
@NotNull
@NotNull org.antlr.v4.runtime.ParserRuleContext ctx,
@NotNull
@NotNull String errorMsg)
@Contract(value="_, _, _, _ -> fail")
protected void syntaxError(@NotNull
@NotNull String compilerInput,
@NotNull
@NotNull org.antlr.v4.runtime.Token token,
@NotNull
@NotNull String errorMsg,
org.antlr.v4.runtime.RecognitionException ex)
@NotNull
protected @NotNull RuntimeException createException(@NotNull
@NotNull String errorMsg,
@NotNull
@NotNull String compilerInput,
int startIndex,
int stopIndex,
@NotNull
@NotNull String visibleMarker,
org.antlr.v4.runtime.RecognitionException ex)