Package manifold.api.type
Interface IFileConnected
-
- All Known Subinterfaces:
ITypeManifold
- All Known Implementing Classes:
JavaTypeManifold,ResourceFileTypeManifold,UrlTypeManifold
public interface IFileConnectedAn abstraction representing a connection between types and files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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)default booleanisFileBacked()Are the types produced from this type manifold backed by project files such as resource files?RefreshKindrefreshedFile(IFile file, String[] types, RefreshKind kind)Notifies that a file has been refreshed.
-
-
-
Method Detail
-
isFileBacked
default boolean isFileBacked()
Are the types produced from this type manifold backed by project files such as resource files?
-
handlesFileExtension
boolean handlesFileExtension(String fileExtension)
- Returns:
- True if this type manifold handles files having the given
fileExtension
-
handlesFile
boolean handlesFile(IFile file)
- Returns:
- True if the type manifold handles the given
file
-
getTypesForFile
String[] getTypesForFile(IFile file)
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.- Parameters:
file- The file in question- Returns:
- All known types derived from that file
-
refreshedFile
RefreshKind refreshedFile(IFile file, String[] types, RefreshKind kind)
Notifies that a file has been refreshed. The implementor should return all types that it knows need to be refreshed based on the given file.- Parameters:
file- The file that was refreshedkind-- Returns:
- All known types affected by the file change
-
-