C# Класс Monobjc.Tools.Generator.Generators.MethodGenerator

Code generator for method.
Наследование: BaseGenerator
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AppendDocumentation() защищенный Метод

protected AppendDocumentation ( MethodEntity methodEntity, bool extensionParameter = false, bool opaqueParameter = false ) : void
methodEntity MethodEntity
extensionParameter bool
opaqueParameter bool
Результат void

AreMethodTypesEqual() защищенный статический Метод

protected static AreMethodTypesEqual ( MethodEntity methodEntity1, MethodEntity methodEntity2 ) : bool
methodEntity1 MethodEntity
methodEntity2 MethodEntity
Результат bool

CollectInformations() защищенный статический Метод

protected static CollectInformations ( MethodEntity methodEntity, bool &needStorage, bool &varargs ) : void
methodEntity MethodEntity
needStorage bool
varargs bool
Результат void

Generate() публичный Метод

public Generate ( BaseEntity entity ) : void
entity BaseEntity
Результат void

Generate() публичный Метод

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
Результат void

GenerateConstructor() публичный Метод

public GenerateConstructor ( ClassEntity classEntity, MethodEntity methodEntity ) : void
classEntity Monobjc.Tools.Generator.Model.ClassEntity
methodEntity MethodEntity
Результат void

GenerateLocalsAllocation() защищенный Метод

protected GenerateLocalsAllocation ( int indent, MethodEntity methodEntity, MethodEntity innerMethodEntity ) : void
indent int
methodEntity MethodEntity
innerMethodEntity MethodEntity
Результат void

GenerateLocalsDeallocation() защищенный Метод

protected GenerateLocalsDeallocation ( int indent, MethodEntity methodEntity, MethodEntity innerMethodEntity ) : void
indent int
methodEntity MethodEntity
innerMethodEntity MethodEntity
Результат void

GenerateLocalsMarshalling() защищенный Метод

protected GenerateLocalsMarshalling ( int indent, MethodEntity methodEntity, MethodEntity innerMethodEntity ) : void
indent int
methodEntity MethodEntity
innerMethodEntity MethodEntity
Результат void

GenerateLocalsUnmarshalling() защищенный Метод

protected GenerateLocalsUnmarshalling ( int indent, MethodEntity methodEntity, MethodEntity innerMethodEntity ) : void
indent int
methodEntity MethodEntity
innerMethodEntity MethodEntity
Результат void

GenerateMethodBody() защищенный Метод

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
Результат void

GetKeywords() защищенный статический Метод

protected static GetKeywords ( MethodEntity methodEntity, bool implementation, bool extension, bool markedAsNew ) : String
methodEntity MethodEntity
implementation bool
extension bool
markedAsNew bool
Результат String

GetMessageParameterList() защищенный статический Метод

protected static GetMessageParameterList ( MethodEntity methodEntity, MethodEntity innerMethodEntity, bool withColonFirst ) : String
methodEntity MethodEntity
innerMethodEntity MethodEntity
withColonFirst bool
Результат String