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

Base class for class generator.
Afficher le fichier Open project: Monobjc/monobjc-tools

Méthodes publiques

Méthode Description
Generate ( BaseEntity entity ) : void

Generate the code for the specified entity.

Méthodes protégées

Méthode 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 méthode

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

AppendEndCondition() protected méthode

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

AppendObsoleteAttribute() protected méthode

Appends the obsolete attribute.
protected AppendObsoleteAttribute ( BaseEntity entity ) : void
entity BaseEntity The entity.
Résultat void

AppendStandardNamespaces() protected méthode

Append the standard namespaces
protected AppendStandardNamespaces ( ) : void
Résultat void

AppendStartCondition() protected méthode

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

BaseGenerator() protected méthode

Initializes a new instance of the BaseGenerator class.
protected BaseGenerator ( ) : System
Résultat System

Generate() public abstract méthode

Generate the code for the specified entity.
public abstract Generate ( BaseEntity entity ) : void
entity BaseEntity
Résultat void

GetInvocationParameter() protected static méthode

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

GetRealType() protected méthode

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.
Résultat String

GetTypeSignature() protected static méthode

Gets the type signature.
protected static GetTypeSignature ( MethodParameterEntity methodParameterEntity ) : String
methodParameterEntity MethodParameterEntity
Résultat String

IsMixedType() protected méthode

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