public class RuleContextWithAltNum extends ParserRuleContext
| Modifier and Type | Field and Description |
|---|---|
int |
altNum |
children, EMPTY, exception, start, stopinvokingState, parent| Constructor and Description |
|---|
RuleContextWithAltNum() |
RuleContextWithAltNum(ParserRuleContext parent,
int invokingStateNumber) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAltNumber()
For rule associated with this parse tree internal node, return
the outer alternative number used to match the input.
|
void |
setAltNumber(int altNum)
Set the outer alternative number for this context node.
|
addAnyChild, addChild, addChild, addErrorNode, copyFrom, enterRule, exitRule, getChild, getChild, getChildCount, getParent, getRuleContext, getRuleContexts, getSourceInterval, getStart, getStop, getToken, getTokens, removeLastChild, toInfoStringaccept, depth, getPayload, getRuleContext, getRuleIndex, getText, isEmpty, setParent, toString, toString, toString, toString, toString, toStringTree, toStringTree, toStringTreepublic RuleContextWithAltNum()
public RuleContextWithAltNum(ParserRuleContext parent, int invokingStateNumber)
public int getAltNumber()
RuleContextgetAltNumber in class RuleContextpublic void setAltNumber(int altNum)
RuleContextsetAltNumber in class RuleContext