Class AnyTextGrammar.ReferenceExpressionFormatDataRuleRule
Rule to assign the contents of the inner rule to Format
public class AnyTextGrammar.ReferenceExpressionFormatDataRuleRule : AssignModelReferenceRule<IReferenceExpression, IDataRule>
- Inheritance
-
AnyTextGrammar.ReferenceExpressionFormatDataRuleRule
- Inherited Members
Properties
Feature
Gets the name of the feature that is assigned
protected override string Feature { get; }
Property Value
Methods
GetValue(IReferenceExpression, ParseContext)
Gets the value of the given property
protected override IDataRule GetValue(IReferenceExpression semanticElement, ParseContext context)
Parameters
semanticElementIReferenceExpressionthe context element
contextParseContextthe parsing context
Returns
- IDataRule
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 AnyText file change.
SetValue(IReferenceExpression, IDataRule, ParseContext)
Assigns the value to the given semantic element
protected override void SetValue(IReferenceExpression semanticElement, IDataRule propertyValue, ParseContext context)
Parameters
semanticElementIReferenceExpressionthe context element
propertyValueIDataRulethe value to assign
contextParseContextthe parsing context