Package manifold.api.type
Class UrlTypeManifold
- java.lang.Object
-
- manifold.api.service.BaseService
-
- manifold.api.type.UrlTypeManifold
-
- All Implemented Interfaces:
IPluginHost,IService,IFileConnected,ISelfCompiled,ITypeManifold
public abstract class UrlTypeManifold extends BaseService implements ITypeManifold
A base class for non-resource based type manifolds. For instance, a type manifold for a subset of RDF could subclassUrlTypeManifold.
-
-
Field Summary
-
Fields inherited from interface manifold.api.type.ITypeManifold
ARG_DUMP_SOURCE
-
-
Constructor Summary
Constructors Constructor Description UrlTypeManifold()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear all cached dataList<IFile>findFilesForType(String fqn)ClassTypegetClassType(String fqn)What kind of type corresponds with fqn?ContributorKindgetContributorKind()How does this producer contribute toward the source file producedIModulegetModule()The module to which this producer is scopedISourceKindgetSourceKind()What 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)voidinit(IModule module)Initialize this type manifold.booleanisTopLevelType(String fqn)RefreshKindrefreshedFile(IFile file, String[] types, RefreshKind kind)Notifies that a file has been refreshed.-
Methods inherited from class manifold.api.service.BaseService
doInit, doUninit, init, isInited, uninit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface manifold.api.type.IFileConnected
isFileBacked
-
Methods inherited from interface manifold.api.service.IPluginHost
getInterface
-
Methods inherited from interface manifold.api.type.ISelfCompiled
compile, isSelfCompile, parse
-
Methods inherited from interface manifold.api.type.ITypeManifold
accept, contribute, enterPostJavaCompilation, getAllTypeNames, getPackage, getTypeNames, isPackage, isType
-
-
-
-
Method Detail
-
init
public void init(IModule module)
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
public IModule getModule()
Description copied from interface:ITypeManifoldThe module to which this producer is scoped- Specified by:
getModulein interfaceITypeManifold
-
getSourceKind
public ISourceKind getSourceKind()
Description copied from interface:ITypeManifoldWhat kind of source is produced? Java?- Specified by:
getSourceKindin interfaceITypeManifold
-
getContributorKind
public ContributorKind getContributorKind()
Description copied from interface:ITypeManifoldHow does this producer contribute toward the source file produced- Specified by:
getContributorKindin interfaceITypeManifold
-
isTopLevelType
public boolean isTopLevelType(String fqn)
- Specified by:
isTopLevelTypein interfaceITypeManifold
-
getClassType
public ClassType getClassType(String fqn)
Description copied from interface:ITypeManifoldWhat kind of type corresponds with fqn?- Specified by:
getClassTypein interfaceITypeManifold
-
findFilesForType
public List<IFile> findFilesForType(String fqn)
- Specified by:
findFilesForTypein interfaceITypeManifold
-
clear
public void clear()
Description copied from interface:ITypeManifoldClear all cached data- Specified by:
clearin interfaceITypeManifold
-
handlesFileExtension
public boolean handlesFileExtension(String fileExtension)
- Specified by:
handlesFileExtensionin interfaceIFileConnected- Returns:
- True if this type manifold handles files having the given
fileExtension
-
handlesFile
public boolean handlesFile(IFile file)
- Specified by:
handlesFilein interfaceIFileConnected- Returns:
- True if the type manifold handles the given
file
-
getTypesForFile
public String[] getTypesForFile(IFile file)
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
public RefreshKind refreshedFile(IFile file, String[] types, RefreshKind kind)
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 refreshed- Returns:
- All known types affected by the file change
-
-