Class RuleLabelScope

java.lang.Object
org.antlr.tool.AttributeScope
org.antlr.tool.RuleLabelScope

public class RuleLabelScope extends AttributeScope
  • Field Details

    • predefinedRulePropertiesScope

      public static AttributeScope predefinedRulePropertiesScope
      Rules have a predefined set of attributes as well as the return values. 'text' needs to be computed though so.
    • predefinedTreeRulePropertiesScope

      public static AttributeScope predefinedTreeRulePropertiesScope
    • predefinedLexerRulePropertiesScope

      public static AttributeScope predefinedLexerRulePropertiesScope
    • grammarTypeToRulePropertiesScope

      public static AttributeScope[] grammarTypeToRulePropertiesScope
    • referencedRule

      public Rule referencedRule
  • Constructor Details

    • RuleLabelScope

      public RuleLabelScope(Rule referencedRule, Token actionToken)
  • Method Details

    • getAttribute

      public Attribute getAttribute(String name)
      If you label a rule reference, you can access that rule's return values as well as any predefined attributes.
      Overrides:
      getAttribute in class AttributeScope