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

Code generator for method.
Inheritance: MethodGenerator
Mostrar archivo Open project: Monobjc/monobjc-tools

Public Methods

Method Description
Generate ( TypedEntity typedEntity, FunctionEntity functionEntity ) : void

/// Generates the specified entity. ///

Generates the specified entity.

Protected Methods

Method Description
GenerateFunctionBody ( int indent, TypedEntity typedEntity, FunctionEntity methodEntity, FunctionEntity innerMethodEntity, bool needStorage, String suffix = null ) : void

Private Methods

Method Description
DeriveFunctionEntity ( FunctionEntity functionEntity, bool is64Bits ) : FunctionEntity
GenerateNativeFunction ( TypedEntity typedEntity, FunctionEntity functionEntity, String suffix, bool isPublic ) : void
GenerateWrapperFunction ( TypedEntity typedEntity, FunctionEntity functionEntity, FunctionEntity functionEntity32, FunctionEntity functionEntity64, bool needStorage ) : void
GetFrameworkPath ( String framework ) : String
GetFunctionInvocation ( TypedEntity typedEntity, FunctionEntity functionEntity, FunctionEntity innerFunctionEntity, String suffix = null ) : string

Method Details

Generate() public method

/// Generates the specified entity. /// Generates the specified entity.
public Generate ( TypedEntity typedEntity, FunctionEntity functionEntity ) : void
typedEntity Monobjc.Tools.Generator.Model.TypedEntity The type entity.
functionEntity Monobjc.Tools.Generator.Model.FunctionEntity The function entity.
return void

GenerateFunctionBody() protected method

protected GenerateFunctionBody ( int indent, TypedEntity typedEntity, FunctionEntity methodEntity, FunctionEntity innerMethodEntity, bool needStorage, String suffix = null ) : void
indent int
typedEntity Monobjc.Tools.Generator.Model.TypedEntity
methodEntity Monobjc.Tools.Generator.Model.FunctionEntity
innerMethodEntity Monobjc.Tools.Generator.Model.FunctionEntity
needStorage bool
suffix String
return void