org.antlr.tool
Class RuleLabelScope

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

public class RuleLabelScope
extends AttributeScope


Field Summary
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
           
 
Fields inherited from class org.antlr.tool.AttributeScope
attributes, derivedFromToken, grammar, isDynamicGlobalScope, isDynamicRuleScope, isParameterScope, isPredefinedLexerRuleScope, isPredefinedRuleScope, isReturnScope, tokenScope
 
Constructor Summary
RuleLabelScope(Rule referencedRule, antlr.Token actionToken)
           
 
Method Summary
 Attribute getAttribute(java.lang.String name)
          If you label a rule reference, you can access that rule's return values as well as any predefined attributes.
 
Methods inherited from class org.antlr.tool.AttributeScope
addAttribute, addAttributes, getAttributes, getName, intersection, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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 Detail

RuleLabelScope

public RuleLabelScope(Rule referencedRule,
                      antlr.Token actionToken)
Method Detail

getAttribute

public Attribute getAttribute(java.lang.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