CodeGen

Overview

The CodeGen class is an abstract base class for specific CodeGen implementations: CodeGen_Intf, CodeGen_Impl, CodeGen_Events and CodeGen_Invk classes. This class contains base methods used to generate .NET code based on provided RODL library. Most methods of this class return instances of the System.CodeDom. These instances can be later used to either generate IL code in memory or to generate C#, VB.NET etc code files.

See the RODL Sample (.NET) code where these classes are used to generate interface, invoker and implementation code files for provided RODL file.

Location


 

constructor  protected

Creates a new instance of the CodeGen class. Cannot be called directly.

 

constructor

 

CodeGen()

 

Sub New()

GenerateCompileUnit

 

method GenerateCompileUnit(library: RodlLibrary; targetNamespace: String; fullFeatureSetSupport: Boolean; awaitSupport: Boolean): CodeCompileUnit

 

CodeCompileUnit GenerateCompileUnit(RodlLibrary library, String targetNamespace, Boolean fullFeatureSetSupport, Boolean awaitSupport)

 

Function GenerateCompileUnit(library As RodlLibrary, targetNamespace As String, fullFeatureSetSupport As Boolean, awaitSupport As Boolean) As CodeCompileUnit

Parameters:

  • library:
  • targetNamespace:
  • fullFeatureSetSupport:
  • awaitSupport:

RodlFileToString (String, String, CodeDomProvider, Boolean, Boolean): String

 

method RodlFileToString(fileName: String; targetNamespace: String; provider: CodeDomProvider; fullFeatureSetSupport: Boolean; awaitSupport: Boolean): String

 

String RodlFileToString(String fileName, String targetNamespace, CodeDomProvider provider, Boolean fullFeatureSetSupport, Boolean awaitSupport)

 

Function RodlFileToString(fileName As String, targetNamespace As String, provider As CodeDomProvider, fullFeatureSetSupport As Boolean, awaitSupport As Boolean) As String

Parameters:

  • fileName:
  • targetNamespace:
  • provider:
  • fullFeatureSetSupport:
  • awaitSupport:

RodlFileToString (String, String, String, String, Boolean, Boolean): String

 

method RodlFileToString(fileName: String; targetNamespace: String; providerAssembly: String; providerClass: String; fullFeatureSetSupport: Boolean; awaitSupport: Boolean): String

 

String RodlFileToString(String fileName, String targetNamespace, String providerAssembly, String providerClass, Boolean fullFeatureSetSupport, Boolean awaitSupport)

 

Function RodlFileToString(fileName As String, targetNamespace As String, providerAssembly As String, providerClass As String, fullFeatureSetSupport As Boolean, awaitSupport As Boolean) As String

Parameters:

  • fileName:
  • targetNamespace:
  • providerAssembly:
  • providerClass:
  • fullFeatureSetSupport:
  • awaitSupport:

WriteToFile

 

class method WriteToFile(unit: CodeCompileUnit; provider: CodeDomProvider; fileName: String)

 

static void WriteToFile(CodeCompileUnit unit, CodeDomProvider provider, String fileName)

 

Shared Sub WriteToFile(unit As CodeCompileUnit, provider As CodeDomProvider, fileName As String)

Parameters:

  • unit:
  • provider:
  • fileName:

WriteToStreamWriter

 

class method WriteToStreamWriter(unit: CodeCompileUnit; provider: CodeDomProvider; writer: TextWriter)

 

static void WriteToStreamWriter(CodeCompileUnit unit, CodeDomProvider provider, TextWriter writer)

 

Shared Sub WriteToStreamWriter(unit As CodeCompileUnit, provider As CodeDomProvider, writer As TextWriter)

Parameters:

  • unit:
  • provider:
  • writer:

WriteToString

 

class method WriteToString(unit: CodeCompileUnit; provider: CodeDomProvider): String

 

static String WriteToString(CodeCompileUnit unit, CodeDomProvider provider)

 

Shared Function WriteToString(unit As CodeCompileUnit, provider As CodeDomProvider) As String

Parameters:

  • unit:
  • provider:

 

WriteToFile

 

class method WriteToFile(unit: CodeCompileUnit; provider: CodeDomProvider; fileName: String)

 

static void WriteToFile(CodeCompileUnit unit, CodeDomProvider provider, String fileName)

 

Shared Sub WriteToFile(unit As CodeCompileUnit, provider As CodeDomProvider, fileName As String)

Parameters:

  • unit:
  • provider:
  • fileName:

WriteToStreamWriter

 

class method WriteToStreamWriter(unit: CodeCompileUnit; provider: CodeDomProvider; writer: TextWriter)

 

static void WriteToStreamWriter(CodeCompileUnit unit, CodeDomProvider provider, TextWriter writer)

 

Shared Sub WriteToStreamWriter(unit As CodeCompileUnit, provider As CodeDomProvider, writer As TextWriter)

Parameters:

  • unit:
  • provider:
  • writer:

WriteToString

 

class method WriteToString(unit: CodeCompileUnit; provider: CodeDomProvider): String

 

static String WriteToString(CodeCompileUnit unit, CodeDomProvider provider)

 

Shared Function WriteToString(unit As CodeCompileUnit, provider As CodeDomProvider) As String

Parameters:

  • unit:
  • provider:

 

constructor  protected

Creates a new instance of the CodeGen class. Cannot be called directly.

 

constructor

 

CodeGen()

 

Sub New()

GenerateCompileUnit

 

method GenerateCompileUnit(library: RodlLibrary; targetNamespace: String; fullFeatureSetSupport: Boolean; awaitSupport: Boolean): CodeCompileUnit

 

CodeCompileUnit GenerateCompileUnit(RodlLibrary library, String targetNamespace, Boolean fullFeatureSetSupport, Boolean awaitSupport)

 

Function GenerateCompileUnit(library As RodlLibrary, targetNamespace As String, fullFeatureSetSupport As Boolean, awaitSupport As Boolean) As CodeCompileUnit

Parameters:

  • library:
  • targetNamespace:
  • fullFeatureSetSupport:
  • awaitSupport:

RodlFileToString (String, String, CodeDomProvider, Boolean, Boolean): String

 

method RodlFileToString(fileName: String; targetNamespace: String; provider: CodeDomProvider; fullFeatureSetSupport: Boolean; awaitSupport: Boolean): String

 

String RodlFileToString(String fileName, String targetNamespace, CodeDomProvider provider, Boolean fullFeatureSetSupport, Boolean awaitSupport)

 

Function RodlFileToString(fileName As String, targetNamespace As String, provider As CodeDomProvider, fullFeatureSetSupport As Boolean, awaitSupport As Boolean) As String

Parameters:

  • fileName:
  • targetNamespace:
  • provider:
  • fullFeatureSetSupport:
  • awaitSupport:

RodlFileToString (String, String, String, String, Boolean, Boolean): String

 

method RodlFileToString(fileName: String; targetNamespace: String; providerAssembly: String; providerClass: String; fullFeatureSetSupport: Boolean; awaitSupport: Boolean): String

 

String RodlFileToString(String fileName, String targetNamespace, String providerAssembly, String providerClass, Boolean fullFeatureSetSupport, Boolean awaitSupport)

 

Function RodlFileToString(fileName As String, targetNamespace As String, providerAssembly As String, providerClass As String, fullFeatureSetSupport As Boolean, awaitSupport As Boolean) As String

Parameters:

  • fileName:
  • targetNamespace:
  • providerAssembly:
  • providerClass:
  • fullFeatureSetSupport:
  • awaitSupport: