public class RuleLabelScope extends AttributeScope
Modifier and Type | Field and 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 |
attributes, derivedFromToken, grammar, isDynamicGlobalScope, isDynamicRuleScope, isParameterScope, isPredefinedLexerRuleScope, isPredefinedRuleScope, isReturnScope, tokenScope
Constructor and Description |
---|
RuleLabelScope(Rule referencedRule,
antlr.Token actionToken) |
Modifier and Type | Method and 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, 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, antlr.Token actionToken)
public Attribute getAttribute(String name)
getAttribute
in class AttributeScope
Copyright © 2020. All rights reserved.