C# Class Rosetta.Translation.ClassDeclarationTranslationUnit

Interface for describing compound translation elements.
Internal members protected for testability.
Inheritance: ScopedElementTranslationUnit, ITranslationUnit, ICompoundTranslationUnit, ITranslationInjector
ファイルを表示 Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Property Type Description
constructorDeclarations IEnumerable
injectedBefore ITranslationUnit
memberDeclarations IEnumerable
methodDeclarations IEnumerable
propertyDeclarations IEnumerable

Public Methods

Method Description
AddConstructorDeclaration ( ITranslationUnit translationUnit ) : void

AddImplementedInterface ( ITranslationUnit implementedInterface ) : void

AddMemberDeclaration ( ITranslationUnit translationUnit ) : void

AddMethodDeclaration ( ITranslationUnit translationUnit ) : void

AddPropertyDeclaration ( ITranslationUnit translationUnit ) : void

ClassDeclarationTranslationUnit ( ClassDeclarationTranslationUnit other ) : System

Copy initializes a new instance of the ClassDeclarationTranslationUnit class.

For testability.

Create ( VisibilityToken visibility, ITranslationUnit name, ITranslationUnit baseClassName ) : ClassDeclarationTranslationUnit

Translate ( ) : string

Translate the unit into TypeScript.

Protected Methods

Method Description
ClassDeclarationTranslationUnit ( ) : System

Initializes a new instance of the ClassDeclarationTranslationUnit class.

Private Methods

Method Description
BuildClassInheritanceAndInterfaceImplementationList ( ) : string

Method Details

AddConstructorDeclaration() public method

public AddConstructorDeclaration ( ITranslationUnit translationUnit ) : void
translationUnit ITranslationUnit
return void

AddImplementedInterface() public method

public AddImplementedInterface ( ITranslationUnit implementedInterface ) : void
implementedInterface ITranslationUnit
return void

AddMemberDeclaration() public method

public AddMemberDeclaration ( ITranslationUnit translationUnit ) : void
translationUnit ITranslationUnit
return void

AddMethodDeclaration() public method

public AddMethodDeclaration ( ITranslationUnit translationUnit ) : void
translationUnit ITranslationUnit
return void

AddPropertyDeclaration() public method

public AddPropertyDeclaration ( ITranslationUnit translationUnit ) : void
translationUnit ITranslationUnit
return void

ClassDeclarationTranslationUnit() protected method

Initializes a new instance of the ClassDeclarationTranslationUnit class.
protected ClassDeclarationTranslationUnit ( ) : System
return System

ClassDeclarationTranslationUnit() public method

Copy initializes a new instance of the ClassDeclarationTranslationUnit class.
For testability.
public ClassDeclarationTranslationUnit ( ClassDeclarationTranslationUnit other ) : System
other ClassDeclarationTranslationUnit
return System

Create() public static method

public static Create ( VisibilityToken visibility, ITranslationUnit name, ITranslationUnit baseClassName ) : ClassDeclarationTranslationUnit
visibility VisibilityToken
name ITranslationUnit
baseClassName ITranslationUnit
return ClassDeclarationTranslationUnit

Translate() public method

Translate the unit into TypeScript.
public Translate ( ) : string
return string

Property Details

constructorDeclarations protected_oe property

protected IEnumerable constructorDeclarations
return IEnumerable

injectedBefore protected_oe property

protected ITranslationUnit injectedBefore
return ITranslationUnit

memberDeclarations protected_oe property

protected IEnumerable memberDeclarations
return IEnumerable

methodDeclarations protected_oe property

protected IEnumerable methodDeclarations
return IEnumerable

propertyDeclarations protected_oe property

protected IEnumerable propertyDeclarations
return IEnumerable