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 |
getOuterAltNum()
The predicted outermost alternative for the rule associated
with this context object.
|
void |
setOuterAltNum(int outerAltNum) |
getRuleIndexaddChild, addChild, addChild, addErrorNode, copyFrom, enterRule, exitRule, getChild, getChild, getChildCount, getParent, getRuleContext, getRuleContexts, getSourceInterval, getStart, getStop, getToken, getTokens, removeLastChild, toInfoStringaccept, depth, getPayload, getRuleContext, getText, isEmpty, toString, toString, toString, toString, toString, toStringTree, toStringTree, toStringTreepublic GrammarInterpreterRuleContext(ParserRuleContext parent, int invokingStateNumber, int ruleIndex)
Copyright © 1992-2015 ANTLR. All Rights Reserved.