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

Represents a MethodRewriter that intercepts calls to field getters and setters and redirects those calls to a IFieldInterceptor instance.
상속: LinFu.AOP.Cecil.InstructionSwapper
파일 보기 프로젝트 열기: philiplaureano/LinFu

공개 메소드들

메소드 설명
AddLocals ( Mono.Cecil.MethodDefinition hostMethod ) : void

Adds locals to the target method.

ImportReferences ( Mono.Cecil.ModuleDefinition module ) : void

Adds references to the target module.

InterceptFieldAccess ( bool>.Func filter ) : System

Initializes a new instance of the InterceptFieldAccess class.

InterceptFieldAccess ( IFieldFilter filter ) : System

Initializes a new instance of the InterceptFieldAccess class.

보호된 메소드들

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

Replaces the oldInstruction with a set of new instructions.

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

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

The InterceptFieldAccess class only modifies instructions that get or set the value of static and instance fields.

비공개 메소드들

메소드 설명
InterceptFieldAccess ( ) : System

메소드 상세

AddLocals() 공개 메소드

Adds locals to the target method.
public AddLocals ( Mono.Cecil.MethodDefinition hostMethod ) : void
hostMethod Mono.Cecil.MethodDefinition The method to be modified
리턴 void

ImportReferences() 공개 메소드

Adds references to the target module.
public ImportReferences ( Mono.Cecil.ModuleDefinition module ) : void
module Mono.Cecil.ModuleDefinition The module that will be modified.
리턴 void

InterceptFieldAccess() 공개 메소드

Initializes a new instance of the InterceptFieldAccess class.
public InterceptFieldAccess ( bool>.Func filter ) : System
filter bool>.Func The filter that determines which fields should be intercepted.
리턴 System

InterceptFieldAccess() 공개 메소드

Initializes a new instance of the InterceptFieldAccess class.
public InterceptFieldAccess ( IFieldFilter filter ) : System
filter IFieldFilter The filter that determines which fields should be intercepted.
리턴 System

Replace() 보호된 메소드

Replaces the oldInstruction with a set of new instructions.
protected 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 that will be used to emit the method body instructions.
리턴 void

ShouldReplace() 보호된 메소드

Determines whether or not the method rewriter should replace the oldInstruction.
The InterceptFieldAccess class only modifies instructions that get or set the value of static and instance fields.
protected 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