public class RuleLabelScope extends AttributeScope
| Modifier and Type | Field | Description |
|---|---|---|
static AttributeScope[] |
grammarTypeToRulePropertiesScope |
|
static AttributeScope |
predefinedLexerRulePropertiesScope |
|
static AttributeScope |
predefinedRulePropertiesScope |
Rules have a predefined set of attributes as well as
the return values.
|
static AttributeScope |
predefinedTreeRulePropertiesScope |
|
Rule |
referencedRule |
actions, attributes, derivedFromToken, grammar, isDynamicGlobalScope, isDynamicRuleScope, isParameterScope, isPredefinedLexerRuleScope, isPredefinedRuleScope, isReturnScope, tokenScope| Constructor | Description |
|---|---|
RuleLabelScope(Rule referencedRule,
Token actionToken) |
| Modifier and Type | Method | Description |
|---|---|---|
Attribute |
getAttribute(String name) |
If you label a rule reference, you can access that rule's
return values as well as any predefined attributes.
|
addAttribute, addAttributes, defineNamedAction, getAttributes, getName, intersection, size, toStringpublic static AttributeScope predefinedRulePropertiesScope
public static AttributeScope predefinedTreeRulePropertiesScope
public static AttributeScope predefinedLexerRulePropertiesScope
public static AttributeScope[] grammarTypeToRulePropertiesScope
public Rule referencedRule
public Attribute getAttribute(String name)
getAttribute in class AttributeScopeCopyright © 1992–2018 ANTLR. All rights reserved.