Table of Contents

Class AnyMetaGrammar.OperationRefinesOperationRule

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

Rule to assign the contents of the inner rule to Refines

public class AnyMetaGrammar.OperationRefinesOperationRule : AssignModelReferenceRule<IOperation, IOperation>
Inheritance
AnyMetaGrammar.OperationRefinesOperationRule
Inherited Members

Properties

Feature

Gets the name of the feature that is assigned

protected override string Feature { get; }

Property Value

string

ResolveDelayLevel

Gets the delay level

protected override byte ResolveDelayLevel { get; }

Property Value

byte

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

string

Methods

GetValue(IOperation, ParseContext)

Gets the value of the given property

protected override IOperation GetValue(IOperation semanticElement, ParseContext context)

Parameters

semanticElement IOperation

the context element

context ParseContext

the parsing context

Returns

IOperation

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

Assigns the value to the given semantic element

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

Parameters

semanticElement IOperation

the context element

propertyValue IOperation

the value to assign

context ParseContext

the parsing context

TryResolveReference(IOperation, string, ParseContext, out IOperation)

Resolves the given input

protected override bool TryResolveReference(IOperation contextElement, string input, ParseContext context, out IOperation resolved)

Parameters

contextElement IOperation

the element in the context of which the string is resolved

input string

the textual reference

context ParseContext

the context in which the element is resolved

resolved IOperation

the resolved reference or the default

Returns

bool

true, if the reference could be resolved, otherwise false