Table of Contents

Class AnyMetaGrammar.LiteralValueIntegerRule

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

Rule to assign the contents of the inner rule to Value

public class AnyMetaGrammar.LiteralValueIntegerRule : AssignRule<ILiteral, int?>
Inheritance
AnyMetaGrammar.LiteralValueIntegerRule
Inherited Members

Properties

Feature

Gets the name of the feature that is assigned

protected override string Feature { get; }

Property Value

string

Methods

GetValue(ILiteral, ParseContext)

Gets the value of the given property

protected override int? GetValue(ILiteral semanticElement, ParseContext context)

Parameters

semanticElement ILiteral

the context element

context ParseContext

the parsing context

Returns

int?

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(ILiteral, int?, ParseContext)

Assigns the value to the given semantic element

protected override void SetValue(ILiteral semanticElement, int? propertyValue, ParseContext context)

Parameters

semanticElement ILiteral

the context element

propertyValue int?

the value to assign

context ParseContext

the parsing context