Interface IFileConnected

All Known Subinterfaces:
ITypeManifold
All Known Implementing Classes:
JavaTypeManifold, ResourceFileTypeManifold, UrlTypeManifold

public interface IFileConnected
An abstraction representing a connection between types and files.
  • Method Details

    • 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 refreshed
      kind - @return All known types affected by the file change