C# Class Endjin.Assembly.ChangeDetection.Query.MethodQuery

Inheritance: BaseQuery
显示文件 Open project: endjin/Endjin.Assembly.ChangeDetection

Protected Properties

Property Type Description
myIsVirtual bool?

Private Properties

Property Type Description
AssignArrayBracketsToTypeName string>.KeyValuePair
CreateRegexFilterFromTypeName string
CreateRegularExpressionFromTypeString System.Text.RegularExpressions.Regex
CreateReturnTypeFilter void
InitArgumentFilter string>>.List
IsArgumentMatch bool
IsNoEventMethod bool
Match bool
MatchArguments bool
MatchReturnType bool
PrependStarToFilter string

Public Methods

Method Description
GetMethods ( Mono.Cecil.TypeDefinition type ) : List
GetSingleMethod ( Mono.Cecil.TypeDefinition type ) : Mono.Cecil.MethodDefinition
MethodQuery ( ) : System

Create a method query which matches every method

MethodQuery ( string methodQuery ) : System

Create a new instance of a Query to match for specific methods for a given type.

The query format can be a simple string like * // get everything public void Function(int firstArg, bool secondArg) // match specfic method public * *( * ) // match all public methods protected * *(* a) // match all protected methods with one parameter

Protected Methods

Method Description
MatchMethodModifiers ( Mono.Cecil.MethodDefinition method ) : bool
SetModifierFilter ( Match m ) : void

Private Methods

Method Description
AssignArrayBracketsToTypeName ( string typeName, string argName ) : string>.KeyValuePair
CreateRegexFilterFromTypeName ( string filterstr ) : string
CreateRegularExpressionFromTypeString ( string newTypeName ) : Regex
CreateReturnTypeFilter ( Match m ) : void
InitArgumentFilter ( string argFilter ) : string>>.List
IsArgumentMatch ( Regex typeFilter, string argNameFilter, string typeName, string argName ) : bool
IsNoEventMethod ( Mono.Cecil.TypeDefinition type, Mono.Cecil.MethodDefinition method ) : bool
Match ( Mono.Cecil.TypeDefinition type, Mono.Cecil.MethodDefinition method ) : bool
MatchArguments ( Mono.Cecil.MethodDefinition method ) : bool
MatchReturnType ( Mono.Cecil.MethodDefinition method ) : bool
PrependStarToFilter ( string filterstr ) : string

Method Details

GetMethods() public method

public GetMethods ( Mono.Cecil.TypeDefinition type ) : List
type Mono.Cecil.TypeDefinition
return List

GetSingleMethod() public method

public GetSingleMethod ( Mono.Cecil.TypeDefinition type ) : Mono.Cecil.MethodDefinition
type Mono.Cecil.TypeDefinition
return Mono.Cecil.MethodDefinition

MatchMethodModifiers() protected method

protected MatchMethodModifiers ( Mono.Cecil.MethodDefinition method ) : bool
method Mono.Cecil.MethodDefinition
return bool

MethodQuery() public method

Create a method query which matches every method
public MethodQuery ( ) : System
return System

MethodQuery() public method

Create a new instance of a Query to match for specific methods for a given type.
The query format can be a simple string like * // get everything public void Function(int firstArg, bool secondArg) // match specfic method public * *( * ) // match all public methods protected * *(* a) // match all protected methods with one parameter
public MethodQuery ( string methodQuery ) : System
methodQuery string The method query.
return System

SetModifierFilter() protected method

protected SetModifierFilter ( Match m ) : void
m System.Text.RegularExpressions.Match
return void

Property Details

myIsVirtual protected_oe property

protected bool? myIsVirtual
return bool?