C# Класс LinFu.AOP.Cecil.MethodWeaver

Represents the default implementation of the IMethodWeaver interface.
Наследование: IMethodWeaver
Показать файл Открыть проект

Открытые методы

Метод Описание
AddAdditionalMembers ( Mono.Cecil.TypeDefinition host ) : void

Adds additional members to the target type.

ImportReferences ( Mono.Cecil.ModuleDefinition module ) : void

Imports additional references into the given module.

MethodWeaver ( IMethodRewriter rewriter, bool>.Func filter ) : System

Initializes a new instance of the MethodWeaver class.

MethodWeaver ( IMethodRewriter rewriter, IInstructionProvider instructionProvider, bool>.Func filter ) : System

Initializes a new instance of the MethodWeaver class.

ShouldWeave ( Mono.Cecil.MethodDefinition item ) : bool

Determines whether or not a method should be modified.

Weave ( Mono.Cecil.MethodDefinition method ) : void

Modifies a target method.

Приватные методы

Метод Описание
Rewrite ( Mono.Cecil.MethodDefinition method ) : void

Rewrites an existing method.

Описание методов

AddAdditionalMembers() публичный Метод

Adds additional members to the target type.
public AddAdditionalMembers ( Mono.Cecil.TypeDefinition host ) : void
host Mono.Cecil.TypeDefinition The target type to be modified.
Результат void

ImportReferences() публичный Метод

Imports additional references into the given module.
public ImportReferences ( Mono.Cecil.ModuleDefinition module ) : void
module Mono.Cecil.ModuleDefinition The module that will store the additional references.
Результат void

MethodWeaver() публичный Метод

Initializes a new instance of the MethodWeaver class.
public MethodWeaver ( IMethodRewriter rewriter, bool>.Func filter ) : System
rewriter IMethodRewriter The instance that will modify the existing method.
filter bool>.Func The filter that determines which methods should be modified.
Результат System

MethodWeaver() публичный Метод

Initializes a new instance of the MethodWeaver class.
public MethodWeaver ( IMethodRewriter rewriter, IInstructionProvider instructionProvider, bool>.Func filter ) : System
rewriter IMethodRewriter The instance that will modify the existing method.
instructionProvider IInstructionProvider The provider that will obtain the original instructions for the target method.
filter bool>.Func The filter that determines which methods should be modified.
Результат System

ShouldWeave() публичный Метод

Determines whether or not a method should be modified.
public ShouldWeave ( Mono.Cecil.MethodDefinition item ) : bool
item Mono.Cecil.MethodDefinition The target method.
Результат bool

Weave() публичный Метод

Modifies a target method.
public Weave ( Mono.Cecil.MethodDefinition method ) : void
method Mono.Cecil.MethodDefinition The target method.
Результат void