public class GrammarInterpreterRuleContext
extends org.antlr.v4.runtime.InterpreterRuleContext
InterpreterRuleContext that knows which alternative
for a rule was matched.GrammarParserInterpreter| Modifier and Type | Field and Description |
|---|---|
protected int |
outerAltNum |
| Constructor and Description |
|---|
GrammarInterpreterRuleContext(org.antlr.v4.runtime.ParserRuleContext parent,
int invokingStateNumber,
int ruleIndex) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAltNumber() |
int |
getOuterAltNum()
The predicted outermost alternative for the rule associated
with this context object.
|
void |
setAltNumber(int altNumber) |
void |
setOuterAltNum(int outerAltNum) |
addAnyChild, addChild, addChild, addChild, addErrorNode, addErrorNode, copyFrom, emptyContext, enterRule, exitRule, getChild, getChild, getChildCount, getParent, getRuleContext, getRuleContexts, getSourceInterval, getStart, getStop, getToken, getTokens, removeLastChild, toInfoStringpublic GrammarInterpreterRuleContext(org.antlr.v4.runtime.ParserRuleContext parent,
int invokingStateNumber,
int ruleIndex)
public int getOuterAltNum()
public void setOuterAltNum(int outerAltNum)
public int getAltNumber()
getAltNumber in class org.antlr.v4.runtime.RuleContextpublic void setAltNumber(int altNumber)
setAltNumber in class org.antlr.v4.runtime.RuleContextCopyright © 1992–2022 Daniel Sun. All rights reserved.