Package org.antlr.tool
Class RuleLabelScope
java.lang.Object
org.antlr.tool.AttributeScope
org.antlr.tool.RuleLabelScope
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic AttributeScope[]
static AttributeScope
static AttributeScope
Rules have a predefined set of attributes as well as the return values.static AttributeScope
Fields inherited from class org.antlr.tool.AttributeScope
actions, attributes, derivedFromToken, grammar, isDynamicGlobalScope, isDynamicRuleScope, isParameterScope, isPredefinedLexerRuleScope, isPredefinedRuleScope, isReturnScope, tokenScope
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(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, defineNamedAction, getAttributes, getName, intersection, size, toString
-
Field Details
-
predefinedRulePropertiesScope
Rules have a predefined set of attributes as well as the return values. 'text' needs to be computed though so. -
predefinedTreeRulePropertiesScope
-
predefinedLexerRulePropertiesScope
-
grammarTypeToRulePropertiesScope
-
referencedRule
-
-
Constructor Details
-
RuleLabelScope
-
-
Method Details
-
getAttribute
If you label a rule reference, you can access that rule's return values as well as any predefined attributes.- Overrides:
getAttribute
in classAttributeScope
-