Class AnyMetaGrammar.AttributeRefinesAttributeRule
Rule to assign the contents of the inner rule to Refines
public class AnyMetaGrammar.AttributeRefinesAttributeRule : AssignModelReferenceRule<IAttribute, IAttribute>
- Inheritance
-
AnyMetaGrammar.AttributeRefinesAttributeRule
- Inherited Members
Properties
Feature
Gets the name of the feature that is assigned
protected override string Feature { get; }
Property Value
ResolveDelayLevel
Gets the delay level
protected override byte ResolveDelayLevel { get; }
Property Value
Remarks
Reference are resolved in layers, one after the other.
TokenType
Gets the token type of tokens created for this rule
public override string TokenType { get; }
Property Value
Methods
GetValue(IAttribute, ParseContext)
Gets the value of the given property
protected override IAttribute GetValue(IAttribute semanticElement, ParseContext context)
Parameters
semanticElementIAttributethe context element
contextParseContextthe parsing context
Returns
- IAttribute
the property value
Initialize(GrammarContext)
Initializes the current grammar rule
public override void Initialize(GrammarContext context)
Parameters
contextGrammarContextthe grammar context in which the rule is initialized
Remarks
Do not modify the contents of this method as it will be overridden as the contents of the Metamodel file change.
SetValue(IAttribute, IAttribute, ParseContext)
Assigns the value to the given semantic element
protected override void SetValue(IAttribute semanticElement, IAttribute propertyValue, ParseContext context)
Parameters
semanticElementIAttributethe context element
propertyValueIAttributethe value to assign
contextParseContextthe parsing context
TryResolveReference(IAttribute, string, ParseContext, out IAttribute)
Resolves the given input
protected override bool TryResolveReference(IAttribute contextElement, string input, ParseContext context, out IAttribute resolved)
Parameters
contextElementIAttributethe element in the context of which the string is resolved
inputstringthe textual reference
contextParseContextthe context in which the element is resolved
resolvedIAttributethe resolved reference or the default
Returns
- bool
true, if the reference could be resolved, otherwise false