Class AnyTextGrammar.MetamodelImportFileUriRule
Rule to assign the contents of the inner rule to File
public class AnyTextGrammar.MetamodelImportFileUriRule : AssignRule<IMetamodelImport, string>
- Inheritance
-
AnyTextGrammar.MetamodelImportFileUriRule
- Inherited Members
Properties
Feature
Gets the name of the feature that is assigned
protected override string Feature { get; }
Property Value
Methods
GetValue(IMetamodelImport, ParseContext)
Gets the value of the given property
protected override string GetValue(IMetamodelImport semanticElement, ParseContext context)
Parameters
semanticElement
IMetamodelImportthe context element
context
ParseContextthe parsing context
Returns
- string
the property value
Initialize(GrammarContext)
Initializes the current grammar rule
public override void Initialize(GrammarContext context)
Parameters
context
GrammarContextthe 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(IMetamodelImport, string, ParseContext)
Assigns the value to the given semantic element
protected override void SetValue(IMetamodelImport semanticElement, string propertyValue, ParseContext context)
Parameters
semanticElement
IMetamodelImportthe context element
propertyValue
stringthe value to assign
context
ParseContextthe parsing context