public abstract class JavaScriptBaseParser
extends org.antlr.v4.runtime.Parser
| 构造器和说明 |
|---|
JavaScriptBaseParser(org.antlr.v4.runtime.TokenStream input) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
closeBrace() |
protected boolean |
lineTerminatorAhead()
Returns
true iff on the current index of the parser's token stream a
token exists on the HIDDEN channel which either is a line terminator,
or is a multi line comment that contains a line terminator. |
protected boolean |
n(java.lang.String str)
Short form for next(String str)
|
protected boolean |
next(java.lang.String str)
Whether the next token value equals to @param str
|
protected boolean |
notLineTerminator() |
protected boolean |
notOpenBraceAndNotFunction() |
protected boolean |
p(java.lang.String str)
Short form for prev(String str)
|
protected boolean |
prev(java.lang.String str)
Whether the previous token value equals to @param str
|
addContextToParseTree, addParseListener, compileParseTreePattern, compileParseTreePattern, consume, createErrorNode, createTerminalNode, dumpDFA, enterOuterAlt, enterRecursionRule, enterRecursionRule, enterRule, exitRule, getATNWithBypassAlts, getBuildParseTree, getContext, getCurrentToken, getDFAStrings, getErrorHandler, getExpectedTokens, getExpectedTokensWithinCurrentRule, getInputStream, getInvokingContext, getNumberOfSyntaxErrors, getParseInfo, getParseListeners, getPrecedence, getRuleContext, getRuleIndex, getRuleInvocationStack, getRuleInvocationStack, getSourceName, getTokenFactory, getTokenStream, getTrimParseTree, inContext, isExpectedToken, isMatchedEOF, isTrace, match, matchWildcard, notifyErrorListeners, notifyErrorListeners, precpred, pushNewRecursionContext, removeParseListener, removeParseListeners, reset, setBuildParseTree, setContext, setErrorHandler, setInputStream, setProfile, setTokenFactory, setTokenStream, setTrace, setTrimParseTree, triggerEnterRuleEvent, triggerExitRuleEvent, unrollRecursionContextsaction, addErrorListener, getATN, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getGrammarFileName, getInterpreter, getRuleIndexMap, getRuleNames, getSerializedATN, getState, getTokenErrorDisplay, getTokenNames, getTokenType, getTokenTypeMap, getVocabulary, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setStateprotected boolean p(java.lang.String str)
protected boolean prev(java.lang.String str)
protected boolean n(java.lang.String str)
protected boolean next(java.lang.String str)
protected boolean notLineTerminator()
protected boolean notOpenBraceAndNotFunction()
protected boolean closeBrace()
protected boolean lineTerminatorAhead()
true iff on the current index of the parser's token stream a
token exists on the HIDDEN channel which either is a line terminator,
or is a multi line comment that contains a line terminator.true iff on the current index of the parser's token stream a
token exists on the HIDDEN channel which either is a line
terminator, or is a multi line comment that contains a line
terminator.