| Modifier and Type | Field and Description |
|---|---|
| public Map | |
| public final AltLabelStructDecl[] | |
| public Collection | |
| public List | |
| public String | |
| public final String | |
| public List | |
| public Action | |
| public boolean | |
| public final int | |
| public OrderedHashSet | |
| public final List | |
| public final String | |
| public Map | |
| public List | |
| public final Rule | |
| public StructDecl | |
| public final Collection | |
| public final ATNState | |
| public final Collection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public List | |
| public Set | getDeclsForAllElements(List<AltAST> altASTs)
for all alts, find which ref X or r needs List Must see across alts. |
| protected Pair | getElementFrequenciesForAlt(AltAST ast)
Given list of X and r refs in alt, compute how many of each there are |
| private String | |
| private List |
| altLabelCtxs | back to summary |
|---|---|
| public Map<String, AltLabelStructDecl> altLabelCtxs
| |
| altToContext | back to summary |
|---|---|
| public final AltLabelStructDecl[] altToContext | |
| args | back to summary |
|---|---|
| public Collection<AttributeDecl> args
| |
| code | back to summary |
|---|---|
| public List<SrcOp> code
| |
| ctxType | back to summary |
|---|---|
| public String ctxType | |
| escapedName | back to summary |
|---|---|
| public final String escapedName | |
| exceptions | back to summary |
|---|---|
| public List<ExceptionClause> exceptions
| |
| finallyAction | back to summary |
|---|---|
| public Action finallyAction
| |
| hasLookaheadBlock | back to summary |
|---|---|
| public boolean hasLookaheadBlock | |
| index | back to summary |
|---|---|
| public final int index | |
| locals | back to summary |
|---|---|
| public OrderedHashSet<Decl> locals
| |
| modifiers | back to summary |
|---|---|
| public final List<String> modifiers | |
| name | back to summary |
|---|---|
| public final String name | |
| namedActions | back to summary |
|---|---|
| public Map<String, Action> namedActions
| |
| postamble | back to summary |
|---|---|
| public List<SrcOp> postamble
| |
| rule | back to summary |
|---|---|
| public final Rule rule | |
| ruleCtx | back to summary |
|---|---|
| public StructDecl ruleCtx
| |
| ruleLabels | back to summary |
|---|---|
| public final Collection<String> ruleLabels | |
| startState | back to summary |
|---|---|
| public final ATNState startState | |
| tokenLabels | back to summary |
|---|---|
| public final Collection<String> tokenLabels | |
| RuleFunction | back to summary |
|---|---|
| public RuleFunction(OutputModelFactory factory, Rule r) | |
| addContextDecl | back to summary |
|---|---|
| public void addContextDecl(String altLabel, Decl d) Add decl to struct ctx for rule or alt if labeled | |
| addContextGetters | back to summary |
|---|---|
| public void addContextGetters(OutputModelFactory factory, Rule r) | |
| addLocalDecl | back to summary |
|---|---|
| public void addLocalDecl(Decl d) Add local var decl | |
| fillNamedActions | back to summary |
|---|---|
| public void fillNamedActions(OutputModelFactory factory, Rule r) | |
| getDeclForAltElement | back to summary |
|---|---|
| public List | |
| getDeclsForAllElements | back to summary |
|---|---|
| public Set for all alts, find which ref X or r needs List Must see across alts. If any alt needs X or r as list, then define as list. | |
| getElementFrequenciesForAlt | back to summary |
|---|---|
| protected Pair Given list of X and r refs in alt, compute how many of each there are | |
| getName | back to summary |
|---|---|
| private String getName(GrammarAST token) | |
| getRuleTokens | back to summary |
|---|---|
| private List | |