C# Class Lucene.Net.LukeNet.ClassFinder.ClassFinder

This class finds classes that implement one or more specified interfaces.
Exibir arquivo Open project: mammo/LukeSharp

Private Properties

Property Type Description
ClassFinder System
FindAllSubTypesOneType System.Collections.ArrayList
FindAllSubtypes System.Type[]
FindTypesInPaths System.Type[]
GetAssembliesList String[]

Public Methods

Method Description
FindClassesThatExtend ( String paths, Type superTypes ) : System.Type[]

Convenience method for findClassesThatExtend(Class[], boolean) with the option to include inner classes in the search set to false.

FindClassesThatExtend ( Type superClasses ) : System.Type[]

Convenience method that finds classes in the application directory

FindClassesThatExtend ( string strPaths, Type superTypes, bool innerTypes ) : System.Type[]
GetInstantiableSubtypes ( Type superType ) : System.Type[]

Convenience method to get a list of types that can be instantiated

Private Methods

Method Description
ClassFinder ( ) : System
FindAllSubTypesOneType ( Type theType, Type allTypes, bool innerClasses ) : ArrayList

Finds all classes that extend the class, searching in the listAllClasses ArrayList.

FindAllSubtypes ( Type superTypes, Type allTypes, bool innerClasses ) : System.Type[]

Finds all classes that extend the classes in the listSuperClasses ArrayList, searching in the listAllClasses ArrayList.

FindTypesInPaths ( string paths ) : System.Type[]
GetAssembliesList ( String paths ) : String[]

Searches the specified path and returns file names which could be considered as assemblies.

Method Details

FindClassesThatExtend() public static method

Convenience method for findClassesThatExtend(Class[], boolean) with the option to include inner classes in the search set to false.
public static FindClassesThatExtend ( String paths, Type superTypes ) : System.Type[]
paths String
superTypes System.Type
return System.Type[]

FindClassesThatExtend() public static method

Convenience method that finds classes in the application directory
public static FindClassesThatExtend ( Type superClasses ) : System.Type[]
superClasses System.Type
return System.Type[]

FindClassesThatExtend() public static method

public static FindClassesThatExtend ( string strPaths, Type superTypes, bool innerTypes ) : System.Type[]
strPaths string
superTypes System.Type
innerTypes bool
return System.Type[]

GetInstantiableSubtypes() public static method

Convenience method to get a list of types that can be instantiated
public static GetInstantiableSubtypes ( Type superType ) : System.Type[]
superType System.Type
return System.Type[]