Table of Contents

Class AnyMetaGrammar.ClassInstanceOfClassRule

Namespace
NMF.AnyText.AnyMeta
Assembly
NMF.AnyText.AnyMeta.dll

Rule to assign the contents of the inner rule to InstanceOf

public class AnyMetaGrammar.ClassInstanceOfClassRule : AssignModelReferenceRule<IClass, IClass>
Inheritance
AnyMetaGrammar.ClassInstanceOfClassRule
Inherited Members

Properties

Feature

Gets the name of the feature that is assigned

protected override string Feature { get; }

Property Value

string

TokenType

Gets the token type of tokens created for this rule

public override string TokenType { get; }

Property Value

string

Methods

GetReferenceString(IClass, object, ParseContext)

Gets the printed reference for the given object

protected override string GetReferenceString(IClass reference, object contextElement, ParseContext context)

Parameters

reference IClass

the referenced object

contextElement object

the semantic context element

context ParseContext

the parse context

Returns

string

a string representation

GetValue(IClass, ParseContext)

Gets the value of the given property

protected override IClass GetValue(IClass semanticElement, ParseContext context)

Parameters

semanticElement IClass

the context element

context ParseContext

the parsing context

Returns

IClass

the property value

Initialize(GrammarContext)

Initializes the current grammar rule

public override void Initialize(GrammarContext context)

Parameters

context GrammarContext

the 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(IClass, IClass, ParseContext)

Assigns the value to the given semantic element

protected override void SetValue(IClass semanticElement, IClass propertyValue, ParseContext context)

Parameters

semanticElement IClass

the context element

propertyValue IClass

the value to assign

context ParseContext

the parsing context