C# Class Shaspect.Builder.Tools.ILTools

Afficher le fichier Open project: mshmelev/Shaspect

Méthodes publiques

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

public static Add ( this coll, Collection instructions ) : void
coll this
instructions Collection
Résultat void

Add() public static méthode

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

Add() public static méthode

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
Résultat void

Add() public static méthode

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

Add() public static méthode

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
Résultat void

Add() public static méthode

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

Add() public static méthode

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
Résultat void

Add() public static méthode

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

Add() public static méthode

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
Résultat void

Add() public static méthode

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

Add() public static méthode

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

Add() public static méthode

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

Add() public static méthode

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

Add() public static méthode

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

Add() public static méthode

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

Add() public static méthode

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

GetLdcOpCode() public static méthode

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

GetLdindOpCode() public static méthode

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

GetStelemOpCode() public static méthode

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

Insert() public static méthode

public static Insert ( this coll, int index, Collection instructions ) : void
coll this
index int
instructions Collection
Résultat void

ReplaceOpCode() public static méthode

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
Résultat void