public abstract class AbstractParser extends org.antlr.v4.runtime.Parser implements SyntaxErrorReportable
| Constructor and Description |
|---|
AbstractParser(org.antlr.v4.runtime.TokenStream input) |
| Modifier and Type | Method and Description |
|---|---|
PositionInfo |
genPositionInfo(int offset) |
void |
require(boolean condition,
java.lang.String msg) |
void |
require(boolean condition,
java.lang.String msg,
boolean toAttachPositionInfo) |
void |
require(boolean condition,
java.lang.String msg,
int offset) |
void |
require(boolean condition,
java.lang.String msg,
int offset,
boolean toAttachPositionInfo) |
void |
throwSyntaxError(java.lang.String msg,
int offset,
boolean toAttachPositionInfo) |
addContextToParseTree, addParseListener, compileParseTreePattern, compileParseTreePattern, consume, createErrorNode, createTerminalNode, dumpDFA, enterLeftFactoredRule, enterOuterAlt, enterRecursionRule, enterRecursionRule, enterRule, exitRule, getATNWithBypassAlts, getBuildParseTree, getContext, getCurrentToken, getDFAStrings, getErrorHandler, getErrorListenerDispatch, getExpectedTokens, getExpectedTokensWithinCurrentRule, getInputStream, getInvokingContext, getNumberOfSyntaxErrors, getParseInfo, getParseListeners, getPrecedence, getRuleContext, getRuleIndex, getRuleInvocationStack, getRuleInvocationStack, getSourceName, getTokenFactory, getTrimParseTree, inContext, isExpectedToken, isMatchedEOF, isTrace, match, matchWildcard, notifyErrorListeners, notifyErrorListeners, precpred, pushNewRecursionContext, removeParseListener, removeParseListeners, reset, setBuildParseTree, setContext, setErrorHandler, setInputStream, setProfile, setTrace, setTrimParseTree, triggerEnterRuleEvent, triggerExitRuleEvent, unrollRecursionContextsaction, addErrorListener, getATN, getErrorHeader, getErrorListeners, getGrammarFileName, getInterpreter, getRuleIndexMap, getRuleNames, getSerializedATN, getState, getTokenErrorDisplay, getTokenNames, getTokenType, getTokenTypeMap, getVocabulary, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetErrorColumn, getErrorLine, getSyntaxErrorSourcepublic void require(boolean condition,
java.lang.String msg,
boolean toAttachPositionInfo)
require in interface SyntaxErrorReportablepublic void require(boolean condition,
java.lang.String msg)
require in interface SyntaxErrorReportablepublic void require(boolean condition,
java.lang.String msg,
int offset,
boolean toAttachPositionInfo)
require in interface SyntaxErrorReportablepublic void require(boolean condition,
java.lang.String msg,
int offset)
require in interface SyntaxErrorReportablepublic void throwSyntaxError(java.lang.String msg,
int offset,
boolean toAttachPositionInfo)
throwSyntaxError in interface SyntaxErrorReportablepublic PositionInfo genPositionInfo(int offset)
genPositionInfo in interface SyntaxErrorReportable