C# 클래스 MonoDevelop.Monobjc.CodeGeneration.BaseCodeBehindGenerator

Base implementation for a code-behind generator. As this implementation is language agnostic, language specific must be implemented in subclasses.
상속: ICodeBehindGenerator
파일 보기 프로젝트 열기: Monobjc/monobjc-monodevelop

공개 메소드들

메소드 설명
GenerateCodeBehindCode ( ProjectTypeCache cache, MonoDevelop.DesignerSupport.CodeBehindWriter writer, String className, IEnumerable descriptors ) : FilePath

Generates the design code for an Interface Builder file.

GenerateFrameworkLoadingCode ( ProjectTypeCache cache, String frameworks ) : FilePath

Generates the design code for framework loading.

보호된 메소드들

메소드 설명
GenerateActionExposedMethod ( String message, IType argumentType ) : CodeTypeMember

Generates the exposed method for an action.

GenerateActionPartialMethod ( String message, IType argumentType ) : CodeTypeMember

Generates the partial method for an action.

GenerateCodeCompileUnit ( ProjectTypeCache cache, String defaultNamespace, String className, IEnumerable enumerable ) : CodeCompileUnit
GenerateFrameworkLoadingcode ( String frameworks ) : IEnumerable

Generates the framework loading code which is language specific.

GenerateGetInstanceVariableStatement ( System.CodeDom.CodeThisReferenceExpression thisRef, CodeTypeReference typeRef, CodePrimitiveExpression nameRef ) : CodeStatement

Generates the "GetInstanceVariable" statement.

GenerateMethodName ( String selector ) : String

Generates the name of the method from a selector.

GenerateOutletProperty ( IType outletType, string name ) : CodeTypeMember

Generates an outlet property.

GenerateSetInstanceVariableStatement ( CodeThisReferenceExpression thisRef, CodeTypeReference typeRef, CodePrimitiveExpression nameRef, CodePropertySetValueReferenceExpression valueRef ) : CodeExpression

Generates the "SetInstanceVariable" expression.

IsDesignerRegionDelimiter ( String line, bool start ) : bool

Determines whether a line is a region delimiter.

메소드 상세

GenerateActionExposedMethod() 보호된 메소드

Generates the exposed method for an action.
protected GenerateActionExposedMethod ( String message, IType argumentType ) : CodeTypeMember
message String The message.
argumentType IType Type of the argument.
리턴 System.CodeDom.CodeTypeMember

GenerateActionPartialMethod() 보호된 추상적인 메소드

Generates the partial method for an action.
protected abstract GenerateActionPartialMethod ( String message, IType argumentType ) : CodeTypeMember
message String The message.
argumentType IType Type of the argument.
리턴 System.CodeDom.CodeTypeMember

GenerateCodeBehindCode() 공개 메소드

Generates the design code for an Interface Builder file.
public GenerateCodeBehindCode ( ProjectTypeCache cache, MonoDevelop.DesignerSupport.CodeBehindWriter writer, String className, IEnumerable descriptors ) : FilePath
cache MonoDevelop.Monobjc.Utilities.ProjectTypeCache
writer MonoDevelop.DesignerSupport.CodeBehindWriter The writer.
className String Name of the class.
descriptors IEnumerable
리턴 FilePath

GenerateCodeCompileUnit() 보호된 메소드

protected GenerateCodeCompileUnit ( ProjectTypeCache cache, String defaultNamespace, String className, IEnumerable enumerable ) : CodeCompileUnit
cache MonoDevelop.Monobjc.Utilities.ProjectTypeCache
defaultNamespace String
className String
enumerable IEnumerable
리턴 System.CodeDom.CodeCompileUnit

GenerateFrameworkLoadingCode() 공개 메소드

Generates the design code for framework loading.
public GenerateFrameworkLoadingCode ( ProjectTypeCache cache, String frameworks ) : FilePath
cache MonoDevelop.Monobjc.Utilities.ProjectTypeCache
frameworks String The frameworks.
리턴 FilePath

GenerateFrameworkLoadingcode() 보호된 추상적인 메소드

Generates the framework loading code which is language specific.
protected abstract GenerateFrameworkLoadingcode ( String frameworks ) : IEnumerable
frameworks String The frameworks.
리턴 IEnumerable

GenerateGetInstanceVariableStatement() 보호된 메소드

Generates the "GetInstanceVariable" statement.
protected GenerateGetInstanceVariableStatement ( System.CodeDom.CodeThisReferenceExpression thisRef, CodeTypeReference typeRef, CodePrimitiveExpression nameRef ) : CodeStatement
thisRef System.CodeDom.CodeThisReferenceExpression This reference.
typeRef System.CodeDom.CodeTypeReference Type reference.
nameRef System.CodeDom.CodePrimitiveExpression Name reference.
리턴 System.CodeDom.CodeStatement

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

Generates the name of the method from a selector.
protected static GenerateMethodName ( String selector ) : String
selector String The selector.
리턴 String

GenerateOutletProperty() 보호된 메소드

Generates an outlet property.
protected GenerateOutletProperty ( IType outletType, string name ) : CodeTypeMember
outletType IType Type of the outlet.
name string The name of the outlet.
리턴 System.CodeDom.CodeTypeMember

GenerateSetInstanceVariableStatement() 보호된 메소드

Generates the "SetInstanceVariable" expression.
protected GenerateSetInstanceVariableStatement ( CodeThisReferenceExpression thisRef, CodeTypeReference typeRef, CodePrimitiveExpression nameRef, CodePropertySetValueReferenceExpression valueRef ) : CodeExpression
thisRef CodeThisReferenceExpression This reference.
typeRef CodeTypeReference Type reference.
nameRef CodePrimitiveExpression Name reference.
valueRef CodePropertySetValueReferenceExpression Value reference
리턴 CodeExpression

IsDesignerRegionDelimiter() 보호된 추상적인 메소드

Determines whether a line is a region delimiter.
protected abstract IsDesignerRegionDelimiter ( String line, bool start ) : bool
line String The line.
start bool if set to true, check for a region start.
리턴 bool