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,
org.antlr.runtime.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, toString
public static AttributeScope predefinedRulePropertiesScope
public static AttributeScope predefinedTreeRulePropertiesScope
public static AttributeScope predefinedLexerRulePropertiesScope
public static AttributeScope[] grammarTypeToRulePropertiesScope
public Rule referencedRule
public RuleLabelScope(Rule referencedRule, org.antlr.runtime.Token actionToken)
public Attribute getAttribute(String name)
getAttribute
in class AttributeScope
Copyright © 1992–2019 ANTLR. All rights reserved.