Class AnyMetaGrammar.OperationRefinesOperationRule
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
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(IOperation, ParseContext)
Gets the value of the given property
protected override IOperation GetValue(IOperation semanticElement, ParseContext context)
Parameters
semanticElement
IOperationthe context element
context
ParseContextthe parsing context
Returns
- IOperation
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 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
IOperationthe context element
propertyValue
IOperationthe value to assign
context
ParseContextthe 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
IOperationthe element in the context of which the string is resolved
input
stringthe textual reference
context
ParseContextthe context in which the element is resolved
resolved
IOperationthe resolved reference or the default
Returns
- bool
true, if the reference could be resolved, otherwise false