C# Class Monobjc.Generators.EmitHelper

ファイルを表示 Open project: Monobjc/monobjc

Public Methods

Method Description
CastValueType ( ILGenerator generator, Type sourceType, Type targetType ) : void
DefineConstructor ( TypeBuilder typeBuilder, MethodImplAttributes attributes, Type parameterTypes ) : ConstructorBuilder
DefineConstructor ( TypeBuilder typeBuilder, MethodImplAttributes attributes, Type parameterTypes, String parameterNames ) : ConstructorBuilder
DefineConstructor ( TypeBuilder typeBuilder, Type parameterTypes ) : ConstructorBuilder
DefineDefaultConstructor ( TypeBuilder typeBuilder ) : ConstructorBuilder
DefineDelegate ( ModuleBuilder typeBuilder, String delegateName, Type returnType, Type parameterTypes, String parameterNames ) : TypeBuilder
DefineField ( TypeBuilder typeBuilder, String fieldName, Type fieldType, bool isStatic ) : FieldBuilder
DefineNestedDelegate ( TypeBuilder typeBuilder, String delegateName, Type returnType, Type parameterTypes, String parameterNames ) : TypeBuilder
DefineNestedDelegate ( TypeBuilder typeBuilder, String delegateName, Type returnType, Type parameterTypes, String parameterNames, ConstructorBuilder &constructorBuilder ) : TypeBuilder
DefineOverrideMethod ( TypeBuilder typeBuilder, MethodImplAttributes attributes, String name, Type returnType, Type parameterTypes ) : MethodBuilder
DefineOverrideMethod ( TypeBuilder typeBuilder, MethodImplAttributes attributes, String name, Type returnType, Type parameterTypes, String parameterNames ) : MethodBuilder
DefineOverrideMethod ( TypeBuilder typeBuilder, String name, Type returnType, Type parameterTypes ) : MethodBuilder
DefineStaticConstructor ( TypeBuilder typeBuilder ) : ConstructorBuilder
DefineType ( ModuleBuilder moduleBuilder, String name ) : TypeBuilder
DefineType ( ModuleBuilder moduleBuilder, String name, Type parentType ) : TypeBuilder
DefineType ( ModuleBuilder moduleBuilder, String name, Type parentType, bool isStatic ) : TypeBuilder
DefineType ( ModuleBuilder moduleBuilder, String name, bool isStatic ) : TypeBuilder

Method Details

CastValueType() public static method

public static CastValueType ( ILGenerator generator, Type sourceType, Type targetType ) : void
generator System.Reflection.Emit.ILGenerator
sourceType System.Type
targetType System.Type
return void

DefineConstructor() public static method

public static DefineConstructor ( TypeBuilder typeBuilder, MethodImplAttributes attributes, Type parameterTypes ) : ConstructorBuilder
typeBuilder System.Reflection.Emit.TypeBuilder
attributes MethodImplAttributes
parameterTypes System.Type
return System.Reflection.Emit.ConstructorBuilder

DefineConstructor() public static method

public static DefineConstructor ( TypeBuilder typeBuilder, MethodImplAttributes attributes, Type parameterTypes, String parameterNames ) : ConstructorBuilder
typeBuilder System.Reflection.Emit.TypeBuilder
attributes MethodImplAttributes
parameterTypes System.Type
parameterNames String
return System.Reflection.Emit.ConstructorBuilder

DefineConstructor() public static method

public static DefineConstructor ( TypeBuilder typeBuilder, Type parameterTypes ) : ConstructorBuilder
typeBuilder System.Reflection.Emit.TypeBuilder
parameterTypes System.Type
return System.Reflection.Emit.ConstructorBuilder

DefineDefaultConstructor() public static method

public static DefineDefaultConstructor ( TypeBuilder typeBuilder ) : ConstructorBuilder
typeBuilder System.Reflection.Emit.TypeBuilder
return System.Reflection.Emit.ConstructorBuilder

DefineDelegate() public static method

public static DefineDelegate ( ModuleBuilder typeBuilder, String delegateName, Type returnType, Type parameterTypes, String parameterNames ) : TypeBuilder
typeBuilder System.Reflection.Emit.ModuleBuilder
delegateName String
returnType System.Type
parameterTypes System.Type
parameterNames String
return System.Reflection.Emit.TypeBuilder

DefineField() public static method

public static DefineField ( TypeBuilder typeBuilder, String fieldName, Type fieldType, bool isStatic ) : FieldBuilder
typeBuilder System.Reflection.Emit.TypeBuilder
fieldName String
fieldType System.Type
isStatic bool
return System.Reflection.Emit.FieldBuilder

DefineNestedDelegate() public static method

public static DefineNestedDelegate ( TypeBuilder typeBuilder, String delegateName, Type returnType, Type parameterTypes, String parameterNames ) : TypeBuilder
typeBuilder System.Reflection.Emit.TypeBuilder
delegateName String
returnType System.Type
parameterTypes System.Type
parameterNames String
return System.Reflection.Emit.TypeBuilder

DefineNestedDelegate() public static method

public static DefineNestedDelegate ( TypeBuilder typeBuilder, String delegateName, Type returnType, Type parameterTypes, String parameterNames, ConstructorBuilder &constructorBuilder ) : TypeBuilder
typeBuilder System.Reflection.Emit.TypeBuilder
delegateName String
returnType System.Type
parameterTypes System.Type
parameterNames String
constructorBuilder System.Reflection.Emit.ConstructorBuilder
return System.Reflection.Emit.TypeBuilder

DefineOverrideMethod() public static method

public static DefineOverrideMethod ( TypeBuilder typeBuilder, MethodImplAttributes attributes, String name, Type returnType, Type parameterTypes ) : MethodBuilder
typeBuilder System.Reflection.Emit.TypeBuilder
attributes MethodImplAttributes
name String
returnType System.Type
parameterTypes System.Type
return System.Reflection.Emit.MethodBuilder

DefineOverrideMethod() public static method

public static DefineOverrideMethod ( TypeBuilder typeBuilder, MethodImplAttributes attributes, String name, Type returnType, Type parameterTypes, String parameterNames ) : MethodBuilder
typeBuilder System.Reflection.Emit.TypeBuilder
attributes MethodImplAttributes
name String
returnType System.Type
parameterTypes System.Type
parameterNames String
return System.Reflection.Emit.MethodBuilder

DefineOverrideMethod() public static method

public static DefineOverrideMethod ( TypeBuilder typeBuilder, String name, Type returnType, Type parameterTypes ) : MethodBuilder
typeBuilder System.Reflection.Emit.TypeBuilder
name String
returnType System.Type
parameterTypes System.Type
return System.Reflection.Emit.MethodBuilder

DefineStaticConstructor() public static method

public static DefineStaticConstructor ( TypeBuilder typeBuilder ) : ConstructorBuilder
typeBuilder System.Reflection.Emit.TypeBuilder
return System.Reflection.Emit.ConstructorBuilder

DefineType() public static method

public static DefineType ( ModuleBuilder moduleBuilder, String name ) : TypeBuilder
moduleBuilder System.Reflection.Emit.ModuleBuilder
name String
return System.Reflection.Emit.TypeBuilder

DefineType() public static method

public static DefineType ( ModuleBuilder moduleBuilder, String name, Type parentType ) : TypeBuilder
moduleBuilder System.Reflection.Emit.ModuleBuilder
name String
parentType System.Type
return System.Reflection.Emit.TypeBuilder

DefineType() public static method

public static DefineType ( ModuleBuilder moduleBuilder, String name, Type parentType, bool isStatic ) : TypeBuilder
moduleBuilder System.Reflection.Emit.ModuleBuilder
name String
parentType System.Type
isStatic bool
return System.Reflection.Emit.TypeBuilder

DefineType() public static method

public static DefineType ( ModuleBuilder moduleBuilder, String name, bool isStatic ) : TypeBuilder
moduleBuilder System.Reflection.Emit.ModuleBuilder
name String
isStatic bool
return System.Reflection.Emit.TypeBuilder