C# 클래스 NMF.Transformations.Core.Transformation

This is the base class for transformations
파일 보기 프로젝트 열기: NMFCode/NMF 1 사용 예제들

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