C# 클래스 Rosetta.Translation.NestedElementTranslationUnit

Class describing nested elements.
파일 보기 프로젝트 열기: andry-tino/Rosetta 1 사용 예제들

공개 메소드들

메소드 설명
IncrementNestingLevel ( ITranslationUnit translationUnit, ITranslationUnit parentTranslationUnit ) : void

Utility method used to safely increment the nesting level of an ITranslationUnit only in case it supports nesting level.

This will cause translationUnit to be checked. In case it supports nestin level, then its nesting level is changed in order to have the nesting level of parentTranslationUnit + 1.

보호된 메소드들

메소드 설명
AddTranslationUnit ( ITranslationUnit translationUnit ) : void

Ensures that compound ITranslationUnit will increment added unit's nesting level. TODO: Use this!

AddTranslationUnitCore ( ITranslationUnit translationUnit ) : void

Logic to provide in subclasses to add ITranslationUnit (for compound translation units). TODO: Turn this into abstract and make all unit use one method for add compound units. TODO: Add to ICompoundUnit interface and have classes distinguish uisng RTTI!

NestedElementTranslationUnit ( ) : System

Initializes a new instance of the NestedElementTranslationUnit.

NestedElementTranslationUnit ( NestedElementTranslationUnit other ) : System

Copy initializes a new instance of the NestedElementTranslationUnit.

For testability.

NestedElementTranslationUnit ( int nestingLevel ) : System

Initializes a new instance of the NestedElementTranslationUnit.

OnNestingLevelChanged ( ) : void

When the indentation level changes, we need to apply a different formatter. When the nesting level changes, this procedure will adjust it in case the automatic nesting level has been set to automatic.

메소드 상세

AddTranslationUnit() 보호된 메소드

Ensures that compound ITranslationUnit will increment added unit's nesting level. TODO: Use this!
protected AddTranslationUnit ( ITranslationUnit translationUnit ) : void
translationUnit ITranslationUnit The translation unit to add.
리턴 void

AddTranslationUnitCore() 보호된 메소드

Logic to provide in subclasses to add ITranslationUnit (for compound translation units). TODO: Turn this into abstract and make all unit use one method for add compound units. TODO: Add to ICompoundUnit interface and have classes distinguish uisng RTTI!
protected AddTranslationUnitCore ( ITranslationUnit translationUnit ) : void
translationUnit ITranslationUnit The translation unit to add.
리턴 void

IncrementNestingLevel() 공개 정적인 메소드

Utility method used to safely increment the nesting level of an ITranslationUnit only in case it supports nesting level.
This will cause translationUnit to be checked. In case it supports nestin level, then its nesting level is changed in order to have the nesting level of parentTranslationUnit + 1.
public static IncrementNestingLevel ( ITranslationUnit translationUnit, ITranslationUnit parentTranslationUnit ) : void
translationUnit ITranslationUnit The whose nesting level should be incremented.
parentTranslationUnit ITranslationUnit The which is supposed to be the parent.
리턴 void

NestedElementTranslationUnit() 보호된 메소드

Initializes a new instance of the NestedElementTranslationUnit.
protected NestedElementTranslationUnit ( ) : System
리턴 System

NestedElementTranslationUnit() 보호된 메소드

Copy initializes a new instance of the NestedElementTranslationUnit.
For testability.
protected NestedElementTranslationUnit ( NestedElementTranslationUnit other ) : System
other NestedElementTranslationUnit
리턴 System

NestedElementTranslationUnit() 보호된 메소드

Initializes a new instance of the NestedElementTranslationUnit.
protected NestedElementTranslationUnit ( int nestingLevel ) : System
nestingLevel int
리턴 System

OnNestingLevelChanged() 보호된 메소드

When the indentation level changes, we need to apply a different formatter. When the nesting level changes, this procedure will adjust it in case the automatic nesting level has been set to automatic.
protected OnNestingLevelChanged ( ) : void
리턴 void