public class TinyTemplateErrorListener extends Object implements org.antlr.v4.runtime.ANTLRErrorListener
Constructor and Description |
---|
TinyTemplateErrorListener(String fileName) |
Modifier and Type | Method and Description |
---|---|
TemplateException |
getTemplateException()
获取第一个TemplateException异常
|
List<TemplateException> |
getTemplateExceptions()
获取全部TemplateException异常
|
void |
reportAmbiguity(org.antlr.v4.runtime.Parser parser,
org.antlr.v4.runtime.dfa.DFA dfa,
int i,
int i1,
boolean b,
BitSet bitSet,
org.antlr.v4.runtime.atn.ATNConfigSet atnConfigSet) |
void |
reportAttemptingFullContext(org.antlr.v4.runtime.Parser parser,
org.antlr.v4.runtime.dfa.DFA dfa,
int i,
int i1,
BitSet bitSet,
org.antlr.v4.runtime.atn.ATNConfigSet atnConfigSet) |
void |
reportContextSensitivity(org.antlr.v4.runtime.Parser parser,
org.antlr.v4.runtime.dfa.DFA dfa,
int i,
int i1,
int i2,
org.antlr.v4.runtime.atn.ATNConfigSet atnConfigSet) |
void |
syntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
org.antlr.v4.runtime.RecognitionException e) |
public TinyTemplateErrorListener(String fileName)
public List<TemplateException> getTemplateExceptions()
public TemplateException getTemplateException()
public void syntaxError(@NotNull org.antlr.v4.runtime.Recognizer<?,?> recognizer, @Nullable Object offendingSymbol, int line, int charPositionInLine, @NotNull String msg, @Nullable org.antlr.v4.runtime.RecognitionException e)
syntaxError
in interface org.antlr.v4.runtime.ANTLRErrorListener
public void reportAmbiguity(@NotNull org.antlr.v4.runtime.Parser parser, @NotNull org.antlr.v4.runtime.dfa.DFA dfa, int i, int i1, boolean b, @Nullable BitSet bitSet, @NotNull org.antlr.v4.runtime.atn.ATNConfigSet atnConfigSet)
reportAmbiguity
in interface org.antlr.v4.runtime.ANTLRErrorListener
public void reportAttemptingFullContext(@NotNull org.antlr.v4.runtime.Parser parser, @NotNull org.antlr.v4.runtime.dfa.DFA dfa, int i, int i1, @Nullable BitSet bitSet, @NotNull org.antlr.v4.runtime.atn.ATNConfigSet atnConfigSet)
reportAttemptingFullContext
in interface org.antlr.v4.runtime.ANTLRErrorListener
public void reportContextSensitivity(@NotNull org.antlr.v4.runtime.Parser parser, @NotNull org.antlr.v4.runtime.dfa.DFA dfa, int i, int i1, int i2, @NotNull org.antlr.v4.runtime.atn.ATNConfigSet atnConfigSet)
reportContextSensitivity
in interface org.antlr.v4.runtime.ANTLRErrorListener
Copyright © 2006–2018 TinyGroup. All rights reserved.