Top Fields Constructors Methods
org.antlr.tool

public Class RuleLabelScope

extends AttributeScope
Class Inheritance
Imports
org.antlr.runtime.Token

Field Summary

Modifier and TypeField and Description
public static AttributeScope[]
public static AttributeScope
public static AttributeScope
predefinedRulePropertiesScope

Rules have a predefined set of attributes as well as the return values.

public static AttributeScope
public Rule
Inherited from org.antlr.tool.AttributeScope:
actionsattributesderivedFromTokengrammarisDynamicGlobalScopeisDynamicRuleScopeisParameterScopeisPredefinedLexerRuleScopeisPredefinedRuleScopeisReturnScopetokenScope

Constructor Summary

AccessConstructor and Description
public
RuleLabelScope(Rule referencedRule, Token actionToken)

Method Summary

Modifier and TypeMethod and Description
public Attribute
getAttribute(String name)

Overrides org.antlr.tool.AttributeScope.getAttribute.

If you label a rule reference, you can access that rule's return values as well as any predefined attributes.
Inherited from org.antlr.tool.AttributeScope:
addAttributeaddAttributesdefineNamedActiongetAttributesgetNameintersectionsizetoString

Field Detail

grammarTypeToRulePropertiesScopeback to summary
public static AttributeScope[] grammarTypeToRulePropertiesScope
predefinedLexerRulePropertiesScopeback to summary
public static AttributeScope predefinedLexerRulePropertiesScope
predefinedRulePropertiesScopeback to summary
public static AttributeScope predefinedRulePropertiesScope

Rules have a predefined set of attributes as well as the return values. 'text' needs to be computed though so.

predefinedTreeRulePropertiesScopeback to summary
public static AttributeScope predefinedTreeRulePropertiesScope
referencedRuleback to summary
public Rule referencedRule

Constructor Detail

RuleLabelScopeback to summary
public RuleLabelScope(Rule referencedRule, Token actionToken)

Method Detail

getAttributeback to summary
public Attribute getAttribute(String name)

Overrides org.antlr.tool.AttributeScope.getAttribute.

If you label a rule reference, you can access that rule's return values as well as any predefined attributes.

Annotations
@Override