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

Inheritance: BaseQuery
Mostrar archivo Open project: endjin/Endjin.Assembly.ChangeDetection

Private Properties

Property Type Description
IsEventFieldOrPropertyBackingFieldOrEnumBackingField bool
Match bool
MatchFieldModifiers bool
MatchFieldType bool

Public Methods

Method Description
FieldQuery ( ) : System

Searches for all fields in a class

FieldQuery ( string query ) : System

Queries for specific fields in a class

The field query must contain at least the field type and name to query for. Access modifier are optional Example: public * * protectd * * static readonly protected * * string m_* * my* // Get all fields which field name begins with my

GetMatchingFields ( Mono.Cecil.TypeDefinition type ) : List

Protected Methods

Method Description
SetModifierFilter ( Match match ) : void

Private Methods

Method Description
IsEventFieldOrPropertyBackingFieldOrEnumBackingField ( FieldDefinition field, Mono.Cecil.TypeDefinition def ) : bool
Match ( FieldDefinition field, Mono.Cecil.TypeDefinition type ) : bool
MatchFieldModifiers ( FieldDefinition field ) : bool
MatchFieldType ( FieldDefinition field ) : bool

Method Details

FieldQuery() public method

Searches for all fields in a class
public FieldQuery ( ) : System
return System

FieldQuery() public method

Queries for specific fields in a class
The field query must contain at least the field type and name to query for. Access modifier are optional Example: public * * protectd * * static readonly protected * * string m_* * my* // Get all fields which field name begins with my
public FieldQuery ( string query ) : System
query string Query string
return System

GetMatchingFields() public method

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

SetModifierFilter() protected method

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