public abstract class Choice extends RuleElement
| Modifier and Type | Field and Description |
|---|---|
java.util.List<CodeBlockForAlt> |
alts |
int |
decision |
Decl |
label |
java.util.List<SrcOp> |
preamble |
stateNumberenclosingBlock, enclosingRuleRunction, uniqueIDast, factory| Constructor and Description |
|---|
Choice(OutputModelFactory factory,
GrammarAST blkOrEbnfRootAST,
java.util.List<CodeBlockForAlt> alts) |
| Modifier and Type | Method and Description |
|---|---|
TestSetInline |
addCodeForLookaheadTempVar(IntervalSet look) |
void |
addPreambleOp(SrcOp op) |
java.util.List<java.lang.String[]> |
getAltLookaheadAsStringLists(IntervalSet[] altLookSets) |
ThrowNoViableAlt |
getThrowNoViableAlt(OutputModelFactory factory,
GrammarAST blkAST,
IntervalSet expecting) |
getContextName, getOuterMostAltCodeBlockpublic int decision
public Decl label
public java.util.List<CodeBlockForAlt> alts
public java.util.List<SrcOp> preamble
public Choice(OutputModelFactory factory, GrammarAST blkOrEbnfRootAST, java.util.List<CodeBlockForAlt> alts)
public void addPreambleOp(SrcOp op)
public java.util.List<java.lang.String[]> getAltLookaheadAsStringLists(IntervalSet[] altLookSets)
public TestSetInline addCodeForLookaheadTempVar(IntervalSet look)
public ThrowNoViableAlt getThrowNoViableAlt(OutputModelFactory factory, GrammarAST blkAST, IntervalSet expecting)