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, unrollRecursionContexts
action, addErrorListener, getATN, getErrorHeader, getErrorListeners, getGrammarFileName, getInterpreter, getRuleIndexMap, getRuleNames, getSerializedATN, getState, getTokenErrorDisplay, getTokenNames, getTokenType, getTokenTypeMap, getVocabulary, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorColumn, getErrorLine, getSyntaxErrorSource
public void require(boolean condition, java.lang.String msg, boolean toAttachPositionInfo)
require
in interface SyntaxErrorReportable
public void require(boolean condition, java.lang.String msg)
require
in interface SyntaxErrorReportable
public void require(boolean condition, java.lang.String msg, int offset, boolean toAttachPositionInfo)
require
in interface SyntaxErrorReportable
public void require(boolean condition, java.lang.String msg, int offset)
require
in interface SyntaxErrorReportable
public void throwSyntaxError(java.lang.String msg, int offset, boolean toAttachPositionInfo)
throwSyntaxError
in interface SyntaxErrorReportable
public PositionInfo genPositionInfo(int offset)
genPositionInfo
in interface SyntaxErrorReportable