C# Class Mono.ILASM.CodeGen

显示文件 Open project: mono/mono Class Usage Examples

Public Methods

Method Description
AddDataDef ( DataDef datadef ) : void
AddFieldDef ( FieldDef fielddef ) : void
AddFieldMarshalInfo ( PEAPI native_type ) : void
AddManifestResource ( ManifestResource mr ) : void
AddPermission ( PEAPI sec_action, object perm ) : void
AddToDefineContentsList ( Mono.ILASM.TypeDef typedef ) : void
BeginAssemblyRef ( string name, AssemblyName asmb_name, PEAPI attr ) : void
BeginMethodDef ( MethodDef methoddef ) : void
BeginSourceFile ( string name ) : void
BeginTypeDef ( TypeAttr attr, string name, Mono.ILASM.BaseClassRef parent, ArrayList impl_list, Mono.ILASM.Location location, Mono.ILASM.GenericParameters gen_params ) : void
CodeGen ( string output_file, bool is_dll, bool debugging_info ) : PEAPI
EndAssemblyRef ( ) : void
EndMethodDef ( Mono.ILASM.Location location ) : void
EndSourceFile ( ) : void
EndTypeDef ( ) : void
GetDataConst ( string name ) : DataConstant
GetGlobalFieldRef ( Mono.ILASM.BaseTypeRef ret_type, string name ) : Mono.ILASM.GlobalFieldRef
GetGlobalMethodRef ( Mono.ILASM.BaseTypeRef ret_type, PEAPI call_conv, string name, Mono.ILASM.BaseTypeRef param, int gen_param_count ) : Mono.ILASM.GlobalMethodRef
GetTypeRef ( string name ) : Mono.ILASM.TypeRef
IsThisAssembly ( string name ) : bool
IsThisModule ( string name ) : bool
ResolveField ( string name, string type_name ) : Field
ResolveMethod ( string signature ) : Method
ResolveVarargMethod ( string sig_only_required_params, string sig_with_optional_params, CodeGen code_gen, PEAPI opt ) : Method
SetCorFlags ( int cor_flags ) : void
SetFileRef ( FileRef file_ref ) : void
SetImageBase ( long image_base ) : void
SetModuleName ( string module_name ) : void
SetStackReserve ( long stack_reserve ) : void
SetSubSystem ( int sub_system ) : void
SetThisAssembly ( string name, PEAPI attr ) : void
Write ( ) : void

Private Methods

Method Description
AddPermission ( PEAPI sec_action, object perm, DeclSecurity decl_sec ) : void
CacheName ( string name ) : string

Method Details

AddDataDef() public method

public AddDataDef ( DataDef datadef ) : void
datadef DataDef
return void

AddFieldDef() public method

public AddFieldDef ( FieldDef fielddef ) : void
fielddef FieldDef
return void

AddFieldMarshalInfo() public method

public AddFieldMarshalInfo ( PEAPI native_type ) : void
native_type PEAPI
return void

AddManifestResource() public method

public AddManifestResource ( ManifestResource mr ) : void
mr PEAPI.ManifestResource
return void

AddPermission() public method

public AddPermission ( PEAPI sec_action, object perm ) : void
sec_action PEAPI
perm object
return void

AddToDefineContentsList() public method

public AddToDefineContentsList ( Mono.ILASM.TypeDef typedef ) : void
typedef Mono.ILASM.TypeDef
return void

BeginAssemblyRef() public method

public BeginAssemblyRef ( string name, AssemblyName asmb_name, PEAPI attr ) : void
name string
asmb_name System.Reflection.AssemblyName
attr PEAPI
return void

BeginMethodDef() public method

public BeginMethodDef ( MethodDef methoddef ) : void
methoddef MethodDef
return void

BeginSourceFile() public method

public BeginSourceFile ( string name ) : void
name string
return void

BeginTypeDef() public method

public BeginTypeDef ( TypeAttr attr, string name, Mono.ILASM.BaseClassRef parent, ArrayList impl_list, Mono.ILASM.Location location, Mono.ILASM.GenericParameters gen_params ) : void
attr TypeAttr
name string
parent Mono.ILASM.BaseClassRef
impl_list System.Collections.ArrayList
location Mono.ILASM.Location
gen_params Mono.ILASM.GenericParameters
return void

CodeGen() public method

public CodeGen ( string output_file, bool is_dll, bool debugging_info ) : PEAPI
output_file string
is_dll bool
debugging_info bool
return PEAPI

EndAssemblyRef() public method

public EndAssemblyRef ( ) : void
return void

EndMethodDef() public method

public EndMethodDef ( Mono.ILASM.Location location ) : void
location Mono.ILASM.Location
return void

EndSourceFile() public method

public EndSourceFile ( ) : void
return void

EndTypeDef() public method

public EndTypeDef ( ) : void
return void

GetDataConst() public method

public GetDataConst ( string name ) : DataConstant
name string
return PEAPI.DataConstant

GetGlobalFieldRef() public method

public GetGlobalFieldRef ( Mono.ILASM.BaseTypeRef ret_type, string name ) : Mono.ILASM.GlobalFieldRef
ret_type Mono.ILASM.BaseTypeRef
name string
return Mono.ILASM.GlobalFieldRef

GetGlobalMethodRef() public method

public GetGlobalMethodRef ( Mono.ILASM.BaseTypeRef ret_type, PEAPI call_conv, string name, Mono.ILASM.BaseTypeRef param, int gen_param_count ) : Mono.ILASM.GlobalMethodRef
ret_type Mono.ILASM.BaseTypeRef
call_conv PEAPI
name string
param Mono.ILASM.BaseTypeRef
gen_param_count int
return Mono.ILASM.GlobalMethodRef

GetTypeRef() public method

public GetTypeRef ( string name ) : Mono.ILASM.TypeRef
name string
return Mono.ILASM.TypeRef

IsThisAssembly() public method

public IsThisAssembly ( string name ) : bool
name string
return bool

IsThisModule() public method

public IsThisModule ( string name ) : bool
name string
return bool

ResolveField() public method

public ResolveField ( string name, string type_name ) : Field
name string
type_name string
return PEAPI.Field

ResolveMethod() public method

public ResolveMethod ( string signature ) : Method
signature string
return PEAPI.Method

ResolveVarargMethod() public method

public ResolveVarargMethod ( string sig_only_required_params, string sig_with_optional_params, CodeGen code_gen, PEAPI opt ) : Method
sig_only_required_params string
sig_with_optional_params string
code_gen CodeGen
opt PEAPI
return PEAPI.Method

SetCorFlags() public method

public SetCorFlags ( int cor_flags ) : void
cor_flags int
return void

SetFileRef() public method

public SetFileRef ( FileRef file_ref ) : void
file_ref FileRef
return void

SetImageBase() public method

public SetImageBase ( long image_base ) : void
image_base long
return void

SetModuleName() public method

public SetModuleName ( string module_name ) : void
module_name string
return void

SetStackReserve() public method

public SetStackReserve ( long stack_reserve ) : void
stack_reserve long
return void

SetSubSystem() public method

public SetSubSystem ( int sub_system ) : void
sub_system int
return void

SetThisAssembly() public method

public SetThisAssembly ( string name, PEAPI attr ) : void
name string
attr PEAPI
return void

Write() public method

public Write ( ) : void
return void