public abstract class TypeLoaderBase extends BaseService implements ITypeLoader
| Modifier and Type | Field and Description |
|---|---|
protected IModule |
_module |
protected Set<String> |
_typeNames |
NO_TYPES| Modifier | Constructor and Description |
|---|---|
protected |
TypeLoaderBase()
Deprecated.
use TypeLoaderBase( IModule )
|
protected |
TypeLoaderBase(IModule module) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearTypeNames() |
protected void |
deleteIndexFile() |
Set<String> |
getAllTypeNames() |
IModule |
getModule() |
String |
getNamespaceForDirectory(IDirectory dir) |
URL |
getResource(String name)
Finds the resource with the given name.
|
Set<TypeName> |
getTypeNames(String namespace) |
static Set<TypeName> |
getTypeNames(String parentNamespace,
ITypeLoader loader) |
String[] |
getTypesForFile(IFile file)
Returns ALL type names associated with the given file
whether or not the types have been loaded yet.
|
boolean |
handlesDirectory(IDirectory dir) |
boolean |
handlesFile(IFile file) |
boolean |
isCaseSensitive() |
Set<String> |
loadTypeNames() |
void |
refreshed()
Fired when the typesystem is fully refreshed
|
RefreshKind |
refreshedFile(IFile file,
String[] types,
RefreshKind kind)
Notifies the type loader that a file has been refreshed.
|
protected void |
refreshedImpl() |
void |
refreshedTypes(RefreshRequest request)
Fired when an existing type is refreshed, i.e.
|
protected void |
refreshedTypesImpl(RefreshRequest request) |
void |
saveTypeNames() |
protected boolean |
shouldCacheTypeNames() |
boolean |
showTypeNamesInIDE() |
void |
shutdown() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomputeTypeNames, getAllNamespaces, getHandledPrefixes, getType, handlesNonPrefixLoads, hasNamespace, refreshedNamespaceprotected TypeLoaderBase()
protected TypeLoaderBase(IModule module)
public IModule getModule()
getModule in interface ITypeLoaderpublic boolean isCaseSensitive()
isCaseSensitive in interface ITypeLoaderpublic boolean handlesFile(IFile file)
handlesFile in interface ITypeLoaderpublic boolean handlesDirectory(IDirectory dir)
handlesDirectory in interface ITypeLoaderpublic String getNamespaceForDirectory(IDirectory dir)
getNamespaceForDirectory in interface ITypeLoaderpublic String[] getTypesForFile(IFile file)
ITypeLoadergetTypesForFile in interface ITypeLoaderfile - The file in questionpublic RefreshKind refreshedFile(IFile file, String[] types, RefreshKind kind)
ITypeLoaderrefreshedFile in interface ITypeLoaderfile - The file that was refreshedkind - @return All known types affected by the file changepublic URL getResource(String name)
ITypeLoaderThe name of a resource is a '/'-separated path name that identifies the resource.
getResource in interface ITypeLoadername - The resource namepublic final void refreshedTypes(RefreshRequest request)
ITypeLoaderrefreshedTypes in interface ITypeLoaderprotected void refreshedTypesImpl(RefreshRequest request)
public final void refreshed()
ITypeLoaderrefreshed in interface ITypeLoaderprotected void clearTypeNames()
protected void refreshedImpl()
public Set<TypeName> getTypeNames(String namespace)
getTypeNames in interface ITypeLoaderpublic static Set<TypeName> getTypeNames(String parentNamespace, ITypeLoader loader)
public boolean showTypeNamesInIDE()
showTypeNamesInIDE in interface ITypeLoaderpublic void shutdown()
shutdown in interface ITypeLoaderprotected void deleteIndexFile()
public void saveTypeNames()
public final Set<String> getAllTypeNames()
getAllTypeNames in interface ITypeLoaderprotected boolean shouldCacheTypeNames()
Copyright © 2019. All rights reserved.