C# Класс NMF.Transformations.Core.Transformation

This is the base class for transformations
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ComputeInstantiatingTransformationRulePath Stack

Открытые методы

Метод Описание
CreateContext ( ) : ITransformationContext

Creates a new transformation context

GetRuleForRuleType ( Type transformationRule ) : NMF.Transformations.Core.GeneralTransformationRule

Gets the rule with the specified type (exact match)

This method assumes there is only one transformation rule per type

GetRuleForTypeSignature ( Type inputTypes, Type outputType ) : NMF.Transformations.Core.GeneralTransformationRule

Gets any rules that apply the given signature

GetRulesExact ( Type input, Type output ) : IEnumerable

Gets all rules that apply the given signature exactly

GetRulesForInputTypes ( ) : IEnumerable

Gets the applicable rules for the given input type signature

GetRulesForRuleType ( Type transformationRule ) : IEnumerable

Gets all rules with the specified type (exact match)

This method assumes there is only one transformation rule per type

GetRulesForTypeSignature ( Type inputTypes, Type outputType ) : IEnumerable

Gets all rules that apply the given signature

GetRulesForTypeSignature ( Type input, Type output, bool exact ) : IEnumerable

Gets all rules that apply the given signature

Initialize ( ) : void

Initializes the transformation

RegisterRules ( ) : void

Registers the rules of this transformation

Защищенные методы

Метод Описание
CreateRules ( ) : IEnumerable

Creates the transformation rules for this transformation

CreateRulesInternal ( ) : void

Creates the rules of this transformation

Приватные методы

Метод Описание
ComputeInstantiatingTransformationRulePath ( NMF.Transformations.Core.Computation computation ) : Stack

Описание методов

CreateContext() публичный Метод

Creates a new transformation context
public CreateContext ( ) : ITransformationContext
Результат ITransformationContext

CreateRules() защищенный абстрактный Метод

Creates the transformation rules for this transformation
protected abstract CreateRules ( ) : IEnumerable
Результат IEnumerable

CreateRulesInternal() защищенный Метод

Creates the rules of this transformation
protected CreateRulesInternal ( ) : void
Результат void

GetRuleForRuleType() публичный Метод

Gets the rule with the specified type (exact match)
This method assumes there is only one transformation rule per type
public GetRuleForRuleType ( Type transformationRule ) : NMF.Transformations.Core.GeneralTransformationRule
transformationRule System.Type The type of the transformation rule
Результат NMF.Transformations.Core.GeneralTransformationRule

GetRuleForTypeSignature() публичный Метод

Gets any rules that apply the given signature
public GetRuleForTypeSignature ( Type inputTypes, Type outputType ) : NMF.Transformations.Core.GeneralTransformationRule
inputTypes System.Type The input argument type list
outputType System.Type The output type
Результат NMF.Transformations.Core.GeneralTransformationRule

GetRulesExact() публичный Метод

Gets all rules that apply the given signature exactly
public GetRulesExact ( Type input, Type output ) : IEnumerable
input System.Type The input argument type list
output System.Type The output type
Результат IEnumerable

GetRulesForInputTypes() публичный Метод

Gets the applicable rules for the given input type signature
public GetRulesForInputTypes ( ) : IEnumerable
Результат IEnumerable

GetRulesForRuleType() публичный Метод

Gets all rules with the specified type (exact match)
This method assumes there is only one transformation rule per type
public GetRulesForRuleType ( Type transformationRule ) : IEnumerable
transformationRule System.Type The type of the transformation rules
Результат IEnumerable

GetRulesForTypeSignature() публичный Метод

Gets all rules that apply the given signature
public GetRulesForTypeSignature ( Type inputTypes, Type outputType ) : IEnumerable
inputTypes System.Type The input argument type list
outputType System.Type The output type
Результат IEnumerable

GetRulesForTypeSignature() публичный Метод

Gets all rules that apply the given signature
public GetRulesForTypeSignature ( Type input, Type output, bool exact ) : IEnumerable
input System.Type The input argument type list
output System.Type The output type
exact bool A value indicating whether the signatures must match exactly
Результат IEnumerable

Initialize() публичный Метод

Initializes the transformation
public Initialize ( ) : void
Результат void

RegisterRules() публичный Метод

Registers the rules of this transformation
public RegisterRules ( ) : void
Результат void