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

Base class for class generator.
Mostra file Open project: Monobjc/monobjc-tools

Public Methods

Method Description
Generate ( BaseEntity entity ) : void

Generate the code for the specified entity.

Protected Methods

Method Description
AppendAvailability ( int indent, BaseEntity entity ) : void

Appends the availability paragraph.

AppendEndCondition ( BaseEntity entity ) : void

Appends the end condition for OS version.

AppendObsoleteAttribute ( BaseEntity entity ) : void

Appends the obsolete attribute.

AppendStandardNamespaces ( ) : void

Append the standard namespaces

AppendStartCondition ( BaseEntity entity ) : void

Appends the start condition for OS version.

BaseGenerator ( ) : System

Initializes a new instance of the BaseGenerator class.

GetInvocationParameter ( MethodParameterEntity methodParameterEntity, MethodParameterEntity destinationMethodParameterEntity = null ) : String

Gets the parameter for an invocation.

GetRealType ( String type, bool is64Bits ) : String

Gets the real type of the given type.

GetTypeSignature ( MethodParameterEntity methodParameterEntity ) : String

Gets the type signature.

IsMixedType ( String type ) : bool

Determines whether the specified type is a mixed type.

Method Details

AppendAvailability() protected method

Appends the availability paragraph.
protected AppendAvailability ( int indent, BaseEntity entity ) : void
indent int The indent.
entity BaseEntity The entity.
return void

AppendEndCondition() protected method

Appends the end condition for OS version.
protected AppendEndCondition ( BaseEntity entity ) : void
entity BaseEntity The entity.
return void

AppendObsoleteAttribute() protected method

Appends the obsolete attribute.
protected AppendObsoleteAttribute ( BaseEntity entity ) : void
entity BaseEntity The entity.
return void

AppendStandardNamespaces() protected method

Append the standard namespaces
protected AppendStandardNamespaces ( ) : void
return void

AppendStartCondition() protected method

Appends the start condition for OS version.
protected AppendStartCondition ( BaseEntity entity ) : void
entity BaseEntity The entity.
return void

BaseGenerator() protected method

Initializes a new instance of the BaseGenerator class.
protected BaseGenerator ( ) : System
return System

Generate() public abstract method

Generate the code for the specified entity.
public abstract Generate ( BaseEntity entity ) : void
entity BaseEntity
return void

GetInvocationParameter() protected static method

Gets the parameter for an invocation.
protected static GetInvocationParameter ( MethodParameterEntity methodParameterEntity, MethodParameterEntity destinationMethodParameterEntity = null ) : String
methodParameterEntity MethodParameterEntity
destinationMethodParameterEntity MethodParameterEntity
return String

GetRealType() protected method

Gets the real type of the given type.
protected GetRealType ( String type, bool is64Bits ) : String
type String The type.
is64Bits bool if set to true, return the 64 bits real type.
return String

GetTypeSignature() protected static method

Gets the type signature.
protected static GetTypeSignature ( MethodParameterEntity methodParameterEntity ) : String
methodParameterEntity MethodParameterEntity
return String

IsMixedType() protected method

Determines whether the specified type is a mixed type.
protected IsMixedType ( String type ) : bool
type String The type.
return bool