C# Class Monobjc.Tools.Generator.Generators.MethodGenerator

Code generator for method.
Inheritance: BaseGenerator
Afficher le fichier Open project: Monobjc/monobjc-tools

Méthodes publiques

Méthode Description
Generate ( BaseEntity entity ) : void
Generate ( ClassEntity classEntity, MethodEntity methodEntity, bool implementation = true, bool extension = false, bool markedAsNew = false ) : void

Generates the specified entity.

GenerateConstructor ( ClassEntity classEntity, MethodEntity methodEntity ) : void

Méthodes protégées

Méthode Description
AppendDocumentation ( MethodEntity methodEntity, bool extensionParameter = false, bool opaqueParameter = false ) : void
AreMethodTypesEqual ( MethodEntity methodEntity1, MethodEntity methodEntity2 ) : bool
CollectInformations ( MethodEntity methodEntity, bool &needStorage, bool &varargs ) : void
GenerateLocalsAllocation ( int indent, MethodEntity methodEntity, MethodEntity innerMethodEntity ) : void
GenerateLocalsDeallocation ( int indent, MethodEntity methodEntity, MethodEntity innerMethodEntity ) : void
GenerateLocalsMarshalling ( int indent, MethodEntity methodEntity, MethodEntity innerMethodEntity ) : void
GenerateLocalsUnmarshalling ( int indent, MethodEntity methodEntity, MethodEntity innerMethodEntity ) : void
GenerateMethodBody ( int indent, string target, MethodEntity methodEntity, MethodEntity innerMethodEntity, bool needStorage, bool varargs ) : void
GetKeywords ( MethodEntity methodEntity, bool implementation, bool extension, bool markedAsNew ) : String
GetMessageParameterList ( MethodEntity methodEntity, MethodEntity innerMethodEntity, bool withColonFirst ) : String

Private Methods

Méthode Description
DeriveMethodEntity ( MethodEntity methodEntity, bool is64Bits ) : MethodEntity
GenerateConstructorBody ( int indent, string target, MethodEntity methodEntity, MethodEntity innerMethodEntity, bool needStorage, bool varargs ) : void
GetExtraParameter ( ClassEntity classEntity, MethodEntity methodEntity, bool extension ) : string
GetMethodInvocation ( string target, MethodEntity methodEntity, MethodEntity innerMethodEntity, bool hasReturn, bool varargs ) : string
GetTarget ( ClassEntity classEntity, MethodEntity methodEntity, bool extension ) : String

Method Details

AppendDocumentation() protected méthode

protected AppendDocumentation ( MethodEntity methodEntity, bool extensionParameter = false, bool opaqueParameter = false ) : void
methodEntity MethodEntity
extensionParameter bool
opaqueParameter bool
Résultat void

AreMethodTypesEqual() protected static méthode

protected static AreMethodTypesEqual ( MethodEntity methodEntity1, MethodEntity methodEntity2 ) : bool
methodEntity1 MethodEntity
methodEntity2 MethodEntity
Résultat bool

CollectInformations() protected static méthode

protected static CollectInformations ( MethodEntity methodEntity, bool &needStorage, bool &varargs ) : void
methodEntity MethodEntity
needStorage bool
varargs bool
Résultat void

Generate() public méthode

public Generate ( BaseEntity entity ) : void
entity BaseEntity
Résultat void

Generate() public méthode

Generates the specified entity.
public Generate ( ClassEntity classEntity, MethodEntity methodEntity, bool implementation = true, bool extension = false, bool markedAsNew = false ) : void
classEntity Monobjc.Tools.Generator.Model.ClassEntity The class entity.
methodEntity MethodEntity The method entity.
implementation bool if set to true generate the implementation.
extension bool if set to true this method is an extension method.
markedAsNew bool
Résultat void

GenerateConstructor() public méthode

public GenerateConstructor ( ClassEntity classEntity, MethodEntity methodEntity ) : void
classEntity Monobjc.Tools.Generator.Model.ClassEntity
methodEntity MethodEntity
Résultat void

GenerateLocalsAllocation() protected méthode

protected GenerateLocalsAllocation ( int indent, MethodEntity methodEntity, MethodEntity innerMethodEntity ) : void
indent int
methodEntity MethodEntity
innerMethodEntity MethodEntity
Résultat void

GenerateLocalsDeallocation() protected méthode

protected GenerateLocalsDeallocation ( int indent, MethodEntity methodEntity, MethodEntity innerMethodEntity ) : void
indent int
methodEntity MethodEntity
innerMethodEntity MethodEntity
Résultat void

GenerateLocalsMarshalling() protected méthode

protected GenerateLocalsMarshalling ( int indent, MethodEntity methodEntity, MethodEntity innerMethodEntity ) : void
indent int
methodEntity MethodEntity
innerMethodEntity MethodEntity
Résultat void

GenerateLocalsUnmarshalling() protected méthode

protected GenerateLocalsUnmarshalling ( int indent, MethodEntity methodEntity, MethodEntity innerMethodEntity ) : void
indent int
methodEntity MethodEntity
innerMethodEntity MethodEntity
Résultat void

GenerateMethodBody() protected méthode

protected GenerateMethodBody ( int indent, string target, MethodEntity methodEntity, MethodEntity innerMethodEntity, bool needStorage, bool varargs ) : void
indent int
target string
methodEntity MethodEntity
innerMethodEntity MethodEntity
needStorage bool
varargs bool
Résultat void

GetKeywords() protected static méthode

protected static GetKeywords ( MethodEntity methodEntity, bool implementation, bool extension, bool markedAsNew ) : String
methodEntity MethodEntity
implementation bool
extension bool
markedAsNew bool
Résultat String

GetMessageParameterList() protected static méthode

protected static GetMessageParameterList ( MethodEntity methodEntity, MethodEntity innerMethodEntity, bool withColonFirst ) : String
methodEntity MethodEntity
innerMethodEntity MethodEntity
withColonFirst bool
Résultat String