C# Class MonoDevelop.Monobjc.Utilities.ProjectTypeCache

Mostra file Open project: Monobjc/monobjc-monodevelop Class Usage Examples

Private Properties

Property Type Description
CollectReferences void
ConvertTo IEnumerable
GetMatchingTypeDefinitions IEnumerable
GetMatchingTypeDefinitions IEnumerable
GetMatchingTypeDefinitions IEnumerable
ProjectTypeCache System

Public Methods

Method Description
ClearCache ( ) : void

Clears the cache.

ForceUpdate ( ) : void

Forces the update of the project wrapper.

Get ( MonobjcProject project ) : ProjectTypeCache

Get the type cache for the given project.

GetAllClasses ( bool projectOnly ) : IEnumerable

Gets all the known classes.

GetAllProtocols ( bool projectOnly ) : IEnumerable

Gets all the known protocols.

GetEntryPoints ( ) : IEnumerable

Resolves the entry points of the project.

GetMainFile ( IType type ) : FilePath

Gets the main file for the type

GetMainMethod ( IType type ) : IMethod

Gets the main method of the given type.

IsInProject ( IType type ) : bool

Check if the type is defined in the main project.

IsInProjectReference ( IType type ) : bool

Check if the type is defined in a referenced project.

RecomputeReferences ( ) : void

Recomputes the reference types.

Remove ( MonobjcProject project ) : void

Remove the specified project type cache.

ResolvePartialType ( String className ) : IType

Resolves the specified class name.

ResolveType ( IType type ) : IType

Gets the DOM type of the type.

ResolveType ( ITypeDefinition typeDefinition ) : IType

Gets the DOM type of the type definition.

ResolveType ( Type type ) : IType

Gets the DOM type of the type.

Private Methods

Method Description
CollectReferences ( ICollection wrappers, MonoDevelop.Ide.TypeSystem.TypeSystemService wrapper ) : void
ConvertTo ( IEnumerable typeDefinitions ) : IEnumerable
GetMatchingTypeDefinitions ( bool>.Func matcher, bool projectOnly ) : IEnumerable
GetMatchingTypeDefinitions ( IEnumerable typeDefinitions, bool>.Func matcher ) : IEnumerable
GetMatchingTypeDefinitions ( MonoDevelop.Ide.TypeSystem.TypeSystemService wrapper, bool>.Func matcher ) : IEnumerable
ProjectTypeCache ( MonobjcProject project ) : System

Initializes a new instance of the MonoDevelop.Monobjc.Utilities.ProjectTypeCache class.

Method Details

ClearCache() public method

Clears the cache.
public ClearCache ( ) : void
return void

ForceUpdate() public method

Forces the update of the project wrapper.
public ForceUpdate ( ) : void
return void

Get() public static method

Get the type cache for the given project.
public static Get ( MonobjcProject project ) : ProjectTypeCache
project MonobjcProject
return ProjectTypeCache

GetAllClasses() public method

Gets all the known classes.
public GetAllClasses ( bool projectOnly ) : IEnumerable
projectOnly bool
return IEnumerable

GetAllProtocols() public method

Gets all the known protocols.
public GetAllProtocols ( bool projectOnly ) : IEnumerable
projectOnly bool
return IEnumerable

GetEntryPoints() public method

Resolves the entry points of the project.
public GetEntryPoints ( ) : IEnumerable
return IEnumerable

GetMainFile() public method

Gets the main file for the type
public GetMainFile ( IType type ) : FilePath
type IType
return FilePath

GetMainMethod() public method

Gets the main method of the given type.
public GetMainMethod ( IType type ) : IMethod
type IType
return IMethod

IsInProject() public method

Check if the type is defined in the main project.
public IsInProject ( IType type ) : bool
type IType
return bool

IsInProjectReference() public method

Check if the type is defined in a referenced project.
public IsInProjectReference ( IType type ) : bool
type IType
return bool

RecomputeReferences() public method

Recomputes the reference types.
public RecomputeReferences ( ) : void
return void

Remove() public static method

Remove the specified project type cache.
public static Remove ( MonobjcProject project ) : void
project MonobjcProject
return void

ResolvePartialType() public method

Resolves the specified class name.
public ResolvePartialType ( String className ) : IType
className String
return IType

ResolveType() public method

Gets the DOM type of the type.
public ResolveType ( IType type ) : IType
type IType
return IType

ResolveType() public method

Gets the DOM type of the type definition.
public ResolveType ( ITypeDefinition typeDefinition ) : IType
typeDefinition ITypeDefinition
return IType

ResolveType() public method

Gets the DOM type of the type.
public ResolveType ( Type type ) : IType
type System.Type
return IType