Package gw.lang.reflect.gs
Interface IGosuClassRepository
- All Known Subinterfaces:
IFileSystemGosuClassRepository
- All Known Implementing Classes:
FileSystemGosuClassRepository
public interface IGosuClassRepository
-
Method Summary
Modifier and TypeMethodDescriptionFinds the ISourceFileHandle for a given fully-qualified class name, or null if no such source file existsfindResource
(String name) Finds the given resource in this repository.getAllTypeNames
(String... extensions) Returns the names of all types in this repository that end with one of the specified file extensionsThe module having this repositorygetTypeNames
(String namespace, Set<String> extensions, ITypeLoader loader) Returns all type names in the given namespace and with the given extensions.int
hasNamespace
(String namespace) Returns the number of namespaces this repository has matching the given name.void
namespaceRefreshed
(String namespace, IDirectory dir, RefreshKind kind) Called when a namespace is refreshedvoid
typesRefreshed
(RefreshRequest request) Called when a type is refreshed
-
Method Details
-
getModule
IModule getModule()The module having this repository -
findClass
Finds the ISourceFileHandle for a given fully-qualified class name, or null if no such source file exists- Parameters:
strQualifiedClassName
- the fully-qualified name of the classextensions
-- Returns:
- The source file handle for the given class, or null if no such source file exists.
-
findResource
Finds the given resource in this repository.The name of a resource is a '/'-separated path name that identifies the resource.
- Parameters:
name
- the name of the resource- Returns:
- the URL of the resource or null if the resource cannot be found.
-
getAllTypeNames
- Returns:
- A set containing all type names in this repository (includes enhancement names)
-
getAllTypeNames
Returns the names of all types in this repository that end with one of the specified file extensions- Parameters:
extensions
- the set of file name extensions to consider- Returns:
- A set containing all the type names in this repository.
-
getTypeNames
Returns all type names in the given namespace and with the given extensions. -
hasNamespace
Returns the number of namespaces this repository has matching the given name. Note a namespace can span multiple source roots, hence the integer return value -- one per source root. -
typesRefreshed
Called when a type is refreshed -
namespaceRefreshed
Called when a namespace is refreshed
-