Package gw.lang.reflect
Class SimpleTypeLoader
java.lang.Object
gw.config.BaseService
gw.lang.reflect.TypeLoaderBase
gw.lang.reflect.SimpleTypeLoader
- All Implemented Interfaces:
IService
,ITypeLoader
,IPluginHost
- Direct Known Subclasses:
DefaultTypeLoader
,GosuClassTypeLoader
-
Field Summary
Fields inherited from class gw.lang.reflect.TypeLoaderBase
_module, _typeNames
Fields inherited from interface gw.lang.reflect.ITypeLoader
NO_TYPES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
getTypesForFile
(IFile file) Returns ALL type names associated with the given file whether or not the types have been loaded yet.boolean
boolean
handlesFile
(IFile file) refreshedFile
(IFile file, String[] types, RefreshKind kind) Notifies the type loader that a file has been refreshed.Methods inherited from class gw.lang.reflect.TypeLoaderBase
clearTypeNames, deleteIndexFile, getAllTypeNames, getModule, getResource, getTypeNames, getTypeNames, isCaseSensitive, loadTypeNames, refreshed, refreshedImpl, refreshedTypes, refreshedTypesImpl, saveTypeNames, shouldCacheTypeNames, showTypeNamesInIDE, shutdown, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface gw.plugin.IPluginHost
getInterface
Methods inherited from interface gw.lang.reflect.ITypeLoader
computeTypeNames, getAllNamespaces, getHandledPrefixes, getType, handlesNonPrefixLoads, hasNamespace, refreshedNamespace
-
Constructor Details
-
SimpleTypeLoader
-
-
Method Details
-
getExtensions
-
handlesFile
- Specified by:
handlesFile
in interfaceITypeLoader
- Overrides:
handlesFile
in classTypeLoaderBase
-
getTypesForFile
Description copied from interface:ITypeLoader
Returns ALL type names associated with the given file whether or not the types have been loaded yet. Type loading should NOT be used in the implementation of this method.- Specified by:
getTypesForFile
in interfaceITypeLoader
- Overrides:
getTypesForFile
in classTypeLoaderBase
- Parameters:
file
- The file in question- Returns:
- All known types derived from that file
-
refreshedFile
Description copied from interface:ITypeLoader
Notifies the type loader that a file has been refreshed. The type loader should return all types that it knows need to be refreshed based on the given file.- Specified by:
refreshedFile
in interfaceITypeLoader
- Overrides:
refreshedFile
in classTypeLoaderBase
- Parameters:
file
- The file that was refreshed- Returns:
- All known types affected by the file change
-
handlesDirectory
- Specified by:
handlesDirectory
in interfaceITypeLoader
- Overrides:
handlesDirectory
in classTypeLoaderBase
-
getNamespaceForDirectory
- Specified by:
getNamespaceForDirectory
in interfaceITypeLoader
- Overrides:
getNamespaceForDirectory
in classTypeLoaderBase
-