| Modifier and Type | Field and Description |
|---|---|
| public List | actions
Track all executable actions other than named actions like @init and catch/finally (not in an alt). |
| public int | altNum
What alternative number is this outermost alt? |
| public AltAST | |
| public MultiMap | labelDefs
A list of all LabelElementPair attached to tokens like id=ID, ids+=ID |
| public Rule | |
| public MultiMap | |
| public MultiMap | |
| public MultiMap | |
| public MultiMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public LabelElementPair | |
| public boolean | |
| public boolean | resolvesToLabel(String x, ActionAST node)
Implements org. |
| public boolean | resolvesToListLabel(String x, ActionAST node)
Implements org. |
| public boolean | resolvesToToken(String x, ActionAST node)
Implements org. |
| public Attribute | resolveToAttribute(String x, ActionAST node)
Implements org. |
| public Attribute | resolveToAttribute(String x, String y, ActionAST node)
Implements org. |
| public Rule |
| actions | back to summary |
|---|---|
| public List<ActionAST> actions Track all executable actions other than named actions like @init and catch/finally (not in an alt). Also tracks predicates, rewrite actions. We need to examine these actions before code generation so that we can detect refs to $rule.attr etc... This tracks per alt | |
| altNum | back to summary |
|---|---|
| public int altNum What alternative number is this outermost alt? 1..n | |
| ast | back to summary |
|---|---|
| public AltAST ast | |
| labelDefs | back to summary |
|---|---|
| public MultiMap<String, LabelElementPair> labelDefs A list of all LabelElementPair attached to tokens like id=ID, ids+=ID | |
| rule | back to summary |
|---|---|
| public Rule rule | |
| ruleRefs | back to summary |
|---|---|
| public MultiMap<String, GrammarAST> ruleRefs | |
| ruleRefsInActions | back to summary |
|---|---|
| public MultiMap<String, GrammarAST> ruleRefsInActions | |
| tokenRefs | back to summary |
|---|---|
| public MultiMap<String, TerminalAST> tokenRefs | |
| tokenRefsInActions | back to summary |
|---|---|
| public MultiMap<String, GrammarAST> tokenRefsInActions | |
| Alternative | back to summary |
|---|---|
| public Alternative(Rule r, int altNum) | |
| getAnyLabelDef | back to summary |
|---|---|
| public LabelElementPair getAnyLabelDef(String x) | |
| resolvesToAttributeDict | back to summary |
|---|---|
| public boolean resolvesToAttributeDict(String x, ActionAST node) Implements org.
| |
| resolvesToLabel | back to summary |
|---|---|
| public boolean resolvesToLabel(String x, ActionAST node) Implements org.
| |
| resolvesToListLabel | back to summary |
|---|---|
| public boolean resolvesToListLabel(String x, ActionAST node) Implements org.
| |
| resolvesToToken | back to summary |
|---|---|
| public boolean resolvesToToken(String x, ActionAST node) Implements org.
| |
| resolveToAttribute | back to summary |
|---|---|
| public Attribute resolveToAttribute(String x, ActionAST node) Implements org. $x Attribute: rule arguments, return values, predefined rule prop.
| |
| resolveToAttribute | back to summary |
|---|---|
| public Attribute resolveToAttribute(String x, String y, ActionAST node) Implements org. $x.y, x can be surrounding rule, token/rule/label ref. y is visible attr in that dictionary. Can't see args on rule refs.
| |
| resolveToRule | back to summary |
|---|---|
| public Rule resolveToRule(String x) x can be ruleref or rule label. | |