C# Class Shaspect.Builder.Tools.ILTools

Exibir arquivo Open project: mshmelev/Shaspect

Public Methods

Method Description
Add ( this coll, Collection instructions ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, Mono.Cecil.CallSite site ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, FieldReference field ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, Instruction target ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, MethodReference method ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, Mono.Cecil.ParameterDefinition parameter ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, TypeReference type ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, Mono.Cecil.Cil.VariableDefinition variable ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, byte value ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, double value ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, float value ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, int value ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, long value ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, sbyte value ) : void
Add ( this coll, Mono.Cecil.Cil.OpCode opcode, string value ) : void
GetLdcOpCode ( TypeReference type, object value ) : Instruction

Returns Ldc instruction specific to the passed type.

GetLdindOpCode ( TypeReference type ) : Instruction

Returns Ldind instruction specific to the passed type.

GetStelemOpCode ( TypeReference type ) : Instruction

Returns Stelem instruction specific to the passed type.

Insert ( this coll, int index, Collection instructions ) : void
ReplaceOpCode ( this instr, Mono.Cecil.Cil.OpCode opCode, object operand ) : void

Replaces OpCode and Operand leaving instruction reference untouched. Useful when instruction is referred to from other places.

Method Details

Add() public static method

public static Add ( this coll, Collection instructions ) : void
coll this
instructions Collection
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, Mono.Cecil.CallSite site ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
site Mono.Cecil.CallSite
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, FieldReference field ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
field Mono.Cecil.FieldReference
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, Instruction target ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
target Mono.Cecil.Cil.Instruction
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, MethodReference method ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
method Mono.Cecil.MethodReference
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, Mono.Cecil.ParameterDefinition parameter ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
parameter Mono.Cecil.ParameterDefinition
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, TypeReference type ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
type Mono.Cecil.TypeReference
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, Mono.Cecil.Cil.VariableDefinition variable ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
variable Mono.Cecil.Cil.VariableDefinition
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, byte value ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
value byte
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, double value ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
value double
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, float value ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
value float
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, int value ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
value int
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, long value ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
value long
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, sbyte value ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
value sbyte
return void

Add() public static method

public static Add ( this coll, Mono.Cecil.Cil.OpCode opcode, string value ) : void
coll this
opcode Mono.Cecil.Cil.OpCode
value string
return void

GetLdcOpCode() public static method

Returns Ldc instruction specific to the passed type.
public static GetLdcOpCode ( TypeReference type, object value ) : Instruction
type Mono.Cecil.TypeReference
value object
return Mono.Cecil.Cil.Instruction

GetLdindOpCode() public static method

Returns Ldind instruction specific to the passed type.
public static GetLdindOpCode ( TypeReference type ) : Instruction
type Mono.Cecil.TypeReference
return Mono.Cecil.Cil.Instruction

GetStelemOpCode() public static method

Returns Stelem instruction specific to the passed type.
public static GetStelemOpCode ( TypeReference type ) : Instruction
type Mono.Cecil.TypeReference
return Mono.Cecil.Cil.Instruction

Insert() public static method

public static Insert ( this coll, int index, Collection instructions ) : void
coll this
index int
instructions Collection
return void

ReplaceOpCode() public static method

Replaces OpCode and Operand leaving instruction reference untouched. Useful when instruction is referred to from other places.
public static ReplaceOpCode ( this instr, Mono.Cecil.Cil.OpCode opCode, object operand ) : void
instr this
opCode Mono.Cecil.Cil.OpCode
operand object
return void