Class UrlTypeManifold
java.lang.Object
manifold.api.service.BaseService
manifold.api.type.UrlTypeManifold
- All Implemented Interfaces:
IPluginHost, IService, IFileConnected, ISelfCompiled, ITypeManifold
A base class for non-resource based type manifolds. For instance, a type
manifold for a subset of RDF could
subclass
UrlTypeManifold.-
Field Summary
Fields inherited from interface ITypeManifold
ARG_DUMP_SOURCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all cached datafindFilesForType(String fqn) getClassType(String fqn) What kind of type corresponds with fqn?How does this producer contribute toward the source file producedThe module to which this producer is scopedWhat kind of source is produced?String[]getTypesForFile(IFile file) Returns ALL type names associated with the given file whether or not the types have been loaded yet.booleanhandlesFile(IFile file) booleanhandlesFileExtension(String fileExtension) voidInitialize this type manifold.booleanisTopLevelType(String fqn) refreshedFile(IFile file, String[] types, RefreshKind kind) Notifies that a file has been refreshed.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IFileConnected
isFileBackedMethods inherited from interface IPluginHost
getInterfaceMethods inherited from interface ISelfCompiled
compile, isSelfCompile, parseMethods inherited from interface ITypeManifold
accept, contribute, enterPostJavaCompilation, getAllTypeNames, getPackage, getTypeNames, isPackage, isType
-
Constructor Details
-
UrlTypeManifold
public UrlTypeManifold()
-
-
Method Details
-
init
Description copied from interface:ITypeManifoldInitialize this type manifold. Avoid defining types in the scope of this method.- Specified by:
initin interfaceITypeManifold- Parameters:
module- The module to which this type manifold exclusively belongs
-
getModule
Description copied from interface:ITypeManifoldThe module to which this producer is scoped- Specified by:
getModulein interfaceITypeManifold
-
getSourceKind
Description copied from interface:ITypeManifoldWhat kind of source is produced? Java?- Specified by:
getSourceKindin interfaceITypeManifold
-
getContributorKind
Description copied from interface:ITypeManifoldHow does this producer contribute toward the source file produced- Specified by:
getContributorKindin interfaceITypeManifold
-
isTopLevelType
- Specified by:
isTopLevelTypein interfaceITypeManifold
-
getClassType
Description copied from interface:ITypeManifoldWhat kind of type corresponds with fqn?- Specified by:
getClassTypein interfaceITypeManifold
-
findFilesForType
- Specified by:
findFilesForTypein interfaceITypeManifold
-
clear
public void clear()Description copied from interface:ITypeManifoldClear all cached data- Specified by:
clearin interfaceITypeManifold
-
handlesFileExtension
- Specified by:
handlesFileExtensionin interfaceIFileConnected- Returns:
- True if this type manifold handles files having the given
fileExtension
-
handlesFile
- Specified by:
handlesFilein interfaceIFileConnected- Returns:
- True if the type manifold handles the given
file
-
getTypesForFile
Description copied from interface:IFileConnectedReturns 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:
getTypesForFilein interfaceIFileConnected- Parameters:
file- The file in question- Returns:
- All known types derived from that file
-
refreshedFile
Description copied from interface:IFileConnectedNotifies that a file has been refreshed. The implementor should return all types that it knows need to be refreshed based on the given file.- Specified by:
refreshedFilein interfaceIFileConnected- Parameters:
file- The file that was refreshedkind- @return All known types affected by the file change
-