C# Class Flunet.CodeGeneration.AutomataNamespaceBuilder

Builds a CodeNamespace representing a IDeterministicAutomata{T} of MethodInfo.
ファイルを表示 Open project: darkl/Flu.net Class Usage Examples

Public Methods

Method Description
AutomataNamespaceBuilder ( IDeterministicAutomata automata ) : System

Creates a new AutomataNamespaceBuilder given a IDeterministicAutomata{T} of MethodInfo.

Build ( string namespaceName, string syntaxTypeName ) : CodeNamespace

Builds the CodeNamespace that represents the given IDeterministicAutomata{T} of MethodInfo.

Private Methods

Method Description
CreateTypeDeclaration ( IAutomataState state, IEnumerable typeGenericParameters ) : CodeTypeDeclaration

Creates an empty CodeTypeDeclaration representing a given IAutomataState{T} of MethodInfo.

FixGenericTypes ( IDictionary result ) : void

Finds generic types dependencies between states.

GatherStatesToGenericParameters ( ) : ICollection>.IDictionary

Creates a mapping between the states to their generic types.

Method Details

AutomataNamespaceBuilder() public method

Creates a new AutomataNamespaceBuilder given a IDeterministicAutomata{T} of MethodInfo.
public AutomataNamespaceBuilder ( IDeterministicAutomata automata ) : System
automata IDeterministicAutomata The given .
return System

Build() public method

Builds the CodeNamespace that represents the given IDeterministicAutomata{T} of MethodInfo.
public Build ( string namespaceName, string syntaxTypeName ) : CodeNamespace
namespaceName string The given namespace's name.
syntaxTypeName string
return System.CodeDom.CodeNamespace