C# 클래스 Rosetta.Translation.PropertyDeclarationTranslationUnit

Class describing properties.
Internal members protected for testability.
상속: Rosetta.Translation.MemberTranslationUnit, ITranslationUnit, ICompoundTranslationUnit
파일 보기 프로젝트 열기: andry-tino/Rosetta 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
getStatements ITranslationUnit
hasGet bool
hasSet bool
setStatements ITranslationUnit
type ITranslationUnit

공개 메소드들

메소드 설명
Create ( VisibilityToken visibility, ITranslationUnit type, ITranslationUnit name, bool hasGet = true, bool hasSet = true ) : PropertyDeclarationTranslationUnit

PropertyDeclarationTranslationUnit ( PropertyDeclarationTranslationUnit other ) : System

Copy initializes a new instance of the MethodDeclarationTranslationUnit class.

For testability.

SetGetAccessor ( ITranslationUnit translationUnit ) : void

SetSetAccessor ( ITranslationUnit translationUnit ) : void

Translate ( ) : string

Translate the unit into TypeScript.

보호된 메소드들

메소드 설명
PropertyDeclarationTranslationUnit ( ) : System

Initializes a new instance of the PropertyDeclarationTranslationUnit class.

PropertyDeclarationTranslationUnit ( ITranslationUnit name, ITranslationUnit returnType, VisibilityToken visibility ) : System

Initializes a new instance of the PropertyDeclarationTranslationUnit class.

ShouldRenderSemicolon ( ITranslationUnit statement ) : bool

메소드 상세

Create() 공개 정적인 메소드

public static Create ( VisibilityToken visibility, ITranslationUnit type, ITranslationUnit name, bool hasGet = true, bool hasSet = true ) : PropertyDeclarationTranslationUnit
visibility VisibilityToken
type ITranslationUnit
name ITranslationUnit
hasGet bool
hasSet bool
리턴 PropertyDeclarationTranslationUnit

PropertyDeclarationTranslationUnit() 보호된 메소드

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

PropertyDeclarationTranslationUnit() 보호된 메소드

Initializes a new instance of the PropertyDeclarationTranslationUnit class.
protected PropertyDeclarationTranslationUnit ( ITranslationUnit name, ITranslationUnit returnType, VisibilityToken visibility ) : System
name ITranslationUnit
returnType ITranslationUnit
visibility VisibilityToken
리턴 System

PropertyDeclarationTranslationUnit() 공개 메소드

Copy initializes a new instance of the MethodDeclarationTranslationUnit class.
For testability.
public PropertyDeclarationTranslationUnit ( PropertyDeclarationTranslationUnit other ) : System
other PropertyDeclarationTranslationUnit
리턴 System

SetGetAccessor() 공개 메소드

public SetGetAccessor ( ITranslationUnit translationUnit ) : void
translationUnit ITranslationUnit
리턴 void

SetSetAccessor() 공개 메소드

public SetSetAccessor ( ITranslationUnit translationUnit ) : void
translationUnit ITranslationUnit
리턴 void

ShouldRenderSemicolon() 보호된 정적인 메소드

protected static ShouldRenderSemicolon ( ITranslationUnit statement ) : bool
statement ITranslationUnit
리턴 bool

Translate() 공개 메소드

Translate the unit into TypeScript.
public Translate ( ) : string
리턴 string

프로퍼티 상세

getStatements 보호되어 있는 프로퍼티

protected ITranslationUnit getStatements
리턴 ITranslationUnit

hasGet 보호되어 있는 프로퍼티

protected bool hasGet
리턴 bool

hasSet 보호되어 있는 프로퍼티

protected bool hasSet
리턴 bool

setStatements 보호되어 있는 프로퍼티

protected ITranslationUnit setStatements
리턴 ITranslationUnit

type 보호되어 있는 프로퍼티

protected ITranslationUnit type
리턴 ITranslationUnit