public class RuleContextWithAltNum extends ParserRuleContext
Modifier and Type | Field and Description |
---|---|
int |
altNum |
children, exception, start, stop
EMPTY, invokingState, 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, addChild, addErrorNode, addErrorNode, copyFrom, enterRule, exitRule, getChild, getChild, getChildCount, getParent, getRuleContext, getRuleContexts, getSourceInterval, getStart, getStop, getToken, getTokens, removeLastChild, toInfoString
accept, depth, getPayload, getRuleContext, getRuleIndex, getText, isEmpty, setParent, toString, toString, toString, toString, toString, toStringTree, toStringTree, toStringTree
public RuleContextWithAltNum()
public RuleContextWithAltNum(ParserRuleContext parent, int invokingStateNumber)
public int getAltNumber()
RuleContext
getAltNumber
in class RuleContext
public void setAltNumber(int altNum)
RuleContext
setAltNumber
in class RuleContext
Copyright © 1992–2021 ANTLR. All rights reserved.