public abstract class Choice extends RuleElement
Modifier and Type | Field | Description |
---|---|---|
List<CodeBlockForAlt> |
alts |
|
int |
decision |
|
Decl |
label |
|
List<SrcOp> |
preamble |
ast, factory
stateNumber
enclosingBlock, enclosingRuleRunction, uniqueID
Constructor | Description |
---|---|
Choice(OutputModelFactory factory,
GrammarAST blkOrEbnfRootAST,
List<CodeBlockForAlt> alts) |
Modifier and Type | Method | Description |
---|---|---|
TestSetInline |
addCodeForLookaheadTempVar(IntervalSet look) |
|
void |
addPreambleOp(SrcOp op) |
|
List<String[]> |
getAltLookaheadAsStringLists(IntervalSet[] altLookSets) |
|
ThrowNoViableAlt |
getThrowNoViableAlt(OutputModelFactory factory,
GrammarAST blkAST,
IntervalSet expecting) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextName, getOuterMostAltCodeBlock
public int decision
public Decl label
public List<CodeBlockForAlt> alts
public Choice(OutputModelFactory factory, GrammarAST blkOrEbnfRootAST, List<CodeBlockForAlt> alts)
public void addPreambleOp(SrcOp op)
public List<String[]> getAltLookaheadAsStringLists(IntervalSet[] altLookSets)
public TestSetInline addCodeForLookaheadTempVar(IntervalSet look)
public ThrowNoViableAlt getThrowNoViableAlt(OutputModelFactory factory, GrammarAST blkAST, IntervalSet expecting)
Copyright © 1992–2018 ANTLR. All rights reserved.