C# Class NMF.Transformations.Core.Transformation

This is the base class for transformations
Afficher le fichier Open project: NMFCode/NMF Class Usage Examples

Private Properties

Свойство Type Description
ComputeInstantiatingTransformationRulePath Stack

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
CreateRules ( ) : IEnumerable

Creates the transformation rules for this transformation

CreateRulesInternal ( ) : void

Creates the rules of this transformation

Private Methods

Méthode Description
ComputeInstantiatingTransformationRulePath ( NMF.Transformations.Core.Computation computation ) : Stack

Method Details

CreateContext() public méthode

Creates a new transformation context
public CreateContext ( ) : ITransformationContext
Résultat ITransformationContext

CreateRules() protected abstract méthode

Creates the transformation rules for this transformation
protected abstract CreateRules ( ) : IEnumerable
Résultat IEnumerable

CreateRulesInternal() protected méthode

Creates the rules of this transformation
protected CreateRulesInternal ( ) : void
Résultat void

GetRuleForRuleType() public méthode

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
Résultat NMF.Transformations.Core.GeneralTransformationRule

GetRuleForTypeSignature() public méthode

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
Résultat NMF.Transformations.Core.GeneralTransformationRule

GetRulesExact() public méthode

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
Résultat IEnumerable

GetRulesForInputTypes() public méthode

Gets the applicable rules for the given input type signature
public GetRulesForInputTypes ( ) : IEnumerable
Résultat IEnumerable

GetRulesForRuleType() public méthode

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
Résultat IEnumerable

GetRulesForTypeSignature() public méthode

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
Résultat IEnumerable

GetRulesForTypeSignature() public méthode

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
Résultat IEnumerable

Initialize() public méthode

Initializes the transformation
public Initialize ( ) : void
Résultat void

RegisterRules() public méthode

Registers the rules of this transformation
public RegisterRules ( ) : void
Résultat void