public class GrammarInterpreterRuleContext extends InterpreterRuleContext
InterpreterRuleContext that knows which alternative
for a rule was matched.GrammarParserInterpreter| Modifier and Type | Field and Description |
|---|---|
protected int |
outerAltNum |
ruleIndexchildren, exception, start, stopEMPTY, invokingState, parent| Constructor and Description |
|---|
GrammarInterpreterRuleContext(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) |
getRuleIndexaddAnyChild, addChild, addChild, addChild, addErrorNode, addErrorNode, copyFrom, enterRule, exitRule, getChild, getChild, getChildCount, getParent, getRuleContext, getRuleContexts, getSourceInterval, getStart, getStop, getToken, getTokens, removeLastChild, toInfoStringaccept, depth, getPayload, getRuleContext, getText, isEmpty, setParent, toString, toString, toString, toString, toString, toStringTree, toStringTree, toStringTreepublic GrammarInterpreterRuleContext(ParserRuleContext parent, int invokingStateNumber, int ruleIndex)
public int getOuterAltNum()
public void setOuterAltNum(int outerAltNum)
public int getAltNumber()
getAltNumber in class RuleContextpublic void setAltNumber(int altNumber)
setAltNumber in class RuleContextCopyright © 1992–2020 ANTLR. All rights reserved.