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 |
ruleIndex
children, exception, start, stop
EMPTY, invokingState, parent
Constructor and Description |
---|
GrammarInterpreterRuleContext(ParserRuleContext parent,
int invokingStateNumber,
int ruleIndex) |
Modifier and Type | Method and Description |
---|---|
int |
getOuterAltNum()
The predicted outermost alternative for the rule associated
with this context object.
|
void |
setOuterAltNum(int outerAltNum) |
getRuleIndex
addChild, addChild, addChild, addErrorNode, copyFrom, enterRule, exitRule, getChild, getChild, getChildCount, getParent, getRuleContext, getRuleContexts, getSourceInterval, getStart, getStop, getToken, getTokens, removeLastChild, toInfoString
accept, depth, getPayload, getRuleContext, getText, isEmpty, toString, toString, toString, toString, toString, toStringTree, toStringTree, toStringTree
public GrammarInterpreterRuleContext(ParserRuleContext parent, int invokingStateNumber, int ruleIndex)
Copyright © 1992–2020 ANTLR. All rights reserved.