C# 클래스 LinFu.AOP.Cecil.MethodRewriter

Provides the basic functionality for the IMethodRewriter interface.
상속: IMethodRewriter
파일 보기 프로젝트 열기: philiplaureano/LinFu

공개 메소드들

메소드 설명
AddAdditionalMembers ( Mono.Cecil.TypeDefinition host ) : void

Adds additional members to the host type.

AddLocals ( Mono.Cecil.MethodDefinition hostMethod ) : void

Adds local variables to the hostMethod.

ImportReferences ( Mono.Cecil.ModuleDefinition module ) : void

Adds additional references to the target module.

Rewrite ( Mono.Cecil.MethodDefinition method, Mono.Cecil.Cil.CilWorker IL, IEnumerable oldInstructions ) : void

Rewrites a target method using the given CilWorker.

보호된 메소드들

메소드 설명
Replace ( Instruction oldInstruction, Mono.Cecil.MethodDefinition hostMethod, Mono.Cecil.Cil.CilWorker IL ) : void

Replaces the oldInstruction with a new set of IL instructions..

ShouldReplace ( Instruction oldInstruction, Mono.Cecil.MethodDefinition hostMethod ) : bool

Determines whether or not the method rewriter should replace the oldInstruction.

메소드 상세

AddAdditionalMembers() 공개 메소드

Adds additional members to the host type.
public AddAdditionalMembers ( Mono.Cecil.TypeDefinition host ) : void
host Mono.Cecil.TypeDefinition The host type.
리턴 void

AddLocals() 공개 메소드

Adds local variables to the hostMethod.
public AddLocals ( Mono.Cecil.MethodDefinition hostMethod ) : void
hostMethod Mono.Cecil.MethodDefinition The target method.
리턴 void

ImportReferences() 공개 메소드

Adds additional references to the target module.
public ImportReferences ( Mono.Cecil.ModuleDefinition module ) : void
module Mono.Cecil.ModuleDefinition The host module.
리턴 void

Replace() 보호된 추상적인 메소드

Replaces the oldInstruction with a new set of IL instructions..
protected abstract Replace ( Instruction oldInstruction, Mono.Cecil.MethodDefinition hostMethod, Mono.Cecil.Cil.CilWorker IL ) : void
oldInstruction Mono.Cecil.Cil.Instruction The instruction currently being evaluated.
hostMethod Mono.Cecil.MethodDefinition The method that contains the target instruction.
IL Mono.Cecil.Cil.CilWorker The CilWorker for the target method body.
리턴 void

Rewrite() 공개 메소드

Rewrites a target method using the given CilWorker.
public Rewrite ( Mono.Cecil.MethodDefinition method, Mono.Cecil.Cil.CilWorker IL, IEnumerable oldInstructions ) : void
method Mono.Cecil.MethodDefinition The target method.
IL Mono.Cecil.Cil.CilWorker The CilWorker that will be used to rewrite the target method.
oldInstructions IEnumerable The original instructions from the target method body.
리턴 void

ShouldReplace() 보호된 추상적인 메소드

Determines whether or not the method rewriter should replace the oldInstruction.
protected abstract ShouldReplace ( Instruction oldInstruction, Mono.Cecil.MethodDefinition hostMethod ) : bool
oldInstruction Mono.Cecil.Cil.Instruction The instruction that is currently being evaluated.
hostMethod Mono.Cecil.MethodDefinition The method that hosts the current instruction.
리턴 bool