C# Class SharpOS.AOT.IR.Class

显示文件 Open project: sharpos/SharpOS Class Usage Examples

Private Properties

Property Type Description
AddMethodToIMT void
AddVirtualMethods void
AssignInterfaceMethodNumbers void
GetClass Class
GetField SharpOS.AOT.IR.Operands.Field
GetGenericMethod Mono.Cecil.MethodReference
GetTypeFullName string
MarkInterfaceMethods void
MergeBaseInterfaceMethods void

Public Methods

Method Description
Add ( Method method ) : void

Adds the specified method.

AddMethods ( ) : void
AddMethods ( bool isAOTCore ) : void
Class ( Engine engine, TypeReference classDefinition ) : System

Initializes a new instance of the Class class.

Class ( Engine engine, TypeReference classDefinition, Mono.Cecil.GenericInstanceType genericInstanceType ) : System
GetFieldByName ( string value ) : Field

Gets the name of the field by.

GetFieldOffset ( string fieldName ) : int

Gets the field offset.

GetFieldType ( string value ) : InternalType

Gets the type of the field.

GetInterfaceEntries ( int key ) : List
GetMethodByName ( MethodReference methodReference ) : Method

Gets the name of the method by.

Setup ( ) : void

Setups this instance.

Setup ( int step ) : void

Setups this instance.

SetupMethods ( ) : void
ToString ( ) : string

Returns a that represents the current .

Private Methods

Method Description
AddMethodToIMT ( Method method ) : void
AddVirtualMethods ( List list ) : void
AssignInterfaceMethodNumbers ( ) : void

Assigns all methods a number for IMT

GetClass ( TypeReference type ) : Class
GetField ( FieldReference fieldReference ) : Field
GetGenericMethod ( Mono.Cecil.GenericInstanceMethod genericInstanceMethod ) : MethodReference
GetTypeFullName ( MemberReference type ) : string
MarkInterfaceMethods ( ) : void

Marks all methods with correct IMT numbers if they are interface implementation

MergeBaseInterfaceMethods ( ) : void

Merges all not implemented interface methods from base classes

Method Details

Add() public method

Adds the specified method.
public Add ( Method method ) : void
method Method The method.
return void

AddMethods() public method

public AddMethods ( ) : void
return void

AddMethods() public method

public AddMethods ( bool isAOTCore ) : void
isAOTCore bool
return void

Class() public method

Initializes a new instance of the Class class.
public Class ( Engine engine, TypeReference classDefinition ) : System
engine Engine The engine.
classDefinition Mono.Cecil.TypeReference The class definition.
return System

Class() public method

public Class ( Engine engine, TypeReference classDefinition, Mono.Cecil.GenericInstanceType genericInstanceType ) : System
engine Engine
classDefinition Mono.Cecil.TypeReference
genericInstanceType Mono.Cecil.GenericInstanceType
return System

GetFieldByName() public method

Gets the name of the field by.
public GetFieldByName ( string value ) : Field
value string The value.
return SharpOS.AOT.IR.Operands.Field

GetFieldOffset() public method

Gets the field offset.
public GetFieldOffset ( string fieldName ) : int
fieldName string Name of the field.
return int

GetFieldType() public method

Gets the type of the field.
public GetFieldType ( string value ) : InternalType
value string The value.
return InternalType

GetInterfaceEntries() public method

public GetInterfaceEntries ( int key ) : List
key int
return List

GetMethodByName() public method

Gets the name of the method by.
public GetMethodByName ( MethodReference methodReference ) : Method
methodReference Mono.Cecil.MethodReference The method reference.
return Method

Setup() public method

Setups this instance.
public Setup ( ) : void
return void

Setup() public method

Setups this instance.
public Setup ( int step ) : void
step int
return void

SetupMethods() public method

public SetupMethods ( ) : void
return void

ToString() public method

Returns a that represents the current .
public ToString ( ) : string
return string