ParseTree, RuleNode, SyntaxTree, Treepublic class RuleContextWithAltNum extends ParserRuleContext
| Modifier and Type | Field | Description |
|---|---|---|
int |
altNum |
children, exception, start, stopEMPTY, invokingState, parent| Constructor | Description |
|---|---|
RuleContextWithAltNum() |
|
RuleContextWithAltNum(ParserRuleContext parent,
int invokingStateNumber) |
| Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAnyChild, addChild, addChild, addChild, addErrorNode, 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 RuleContextCopyright © 1992–2019 ANTLR. All rights reserved.