public abstract class Choice extends RuleElement
| Modifier and Type | Field and Description |
|---|---|
List<CodeBlockForAlt> |
alts |
int |
decision |
Decl |
label |
List<SrcOp> |
preamble |
stateNumberenclosingBlock, enclosingRuleRunction, uniqueIDast, factory| Constructor and Description |
|---|
Choice(OutputModelFactory factory,
GrammarAST blkOrEbnfRootAST,
List<CodeBlockForAlt> alts) |
| Modifier and Type | Method and Description |
|---|---|
TestSetInline |
addCodeForLookaheadTempVar(org.antlr.v4.runtime.misc.IntervalSet look) |
void |
addPreambleOp(SrcOp op) |
List<String[]> |
getAltLookaheadAsStringLists(org.antlr.v4.runtime.misc.IntervalSet[] altLookSets) |
ThrowNoViableAlt |
getThrowNoViableAlt(OutputModelFactory factory,
GrammarAST blkAST,
org.antlr.v4.runtime.misc.IntervalSet expecting) |
getContextName, getOuterMostAltCodeBlockpublic 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(org.antlr.v4.runtime.misc.IntervalSet[] altLookSets)
public TestSetInline addCodeForLookaheadTempVar(org.antlr.v4.runtime.misc.IntervalSet look)
public ThrowNoViableAlt getThrowNoViableAlt(OutputModelFactory factory, GrammarAST blkAST, org.antlr.v4.runtime.misc.IntervalSet expecting)
Copyright © 1992–2022 Daniel Sun. All rights reserved.