ParseTree
, RuleNode
, SyntaxTree
, Tree
public class RuleContextWithAltNum extends ParserRuleContext
Modifier and Type | Field | Description |
---|---|---|
int |
altNum |
children, exception, start, stop
EMPTY, 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, wait
addChild, addChild, addChild, addErrorNode, copyFrom, enterRule, exitRule, getChild, getChild, getChildCount, getParent, getRuleContext, getRuleContexts, getSourceInterval, getStart, getStop, getToken, getTokens, removeLastChild, toInfoString
accept, depth, getPayload, getRuleContext, getRuleIndex, getText, isEmpty, 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–2018 ANTLR. All rights reserved.