com.intellij.openapi.roots
Interface ModuleFileIndex

All Superinterfaces:
FileIndex

public interface ModuleFileIndex
extends FileIndex

Provides information about files contained in a module.


Method Summary
 OrderEntry[] getOrderEntriesForFile(VirtualFile fileOrDir)
          Returns the list of all order entries to which the specified file or directory belongs.
 OrderEntry getOrderEntryForFile(VirtualFile fileOrDir)
          Returns the order entry to which the specified file or directory belongs.
 
Methods inherited from interface com.intellij.openapi.roots.FileIndex
getDirectoriesByPackageName, isContentJavaSourceFile, isInContent, isInSourceContent, isInTestSourceContent, iterateContent, iterateContentUnderDirectory
 

Method Detail

getOrderEntryForFile

@Nullable
OrderEntry getOrderEntryForFile(VirtualFile fileOrDir)
Returns the order entry to which the specified file or directory belongs.

Parameters:
fileOrDir - the file or drirectory to check.
Returns:
the order entry to which the file or directory belongs, or null if it does not belong to any order entry.

getOrderEntriesForFile

@NotNull
OrderEntry[] getOrderEntriesForFile(VirtualFile fileOrDir)
Returns the list of all order entries to which the specified file or directory belongs.

Parameters:
fileOrDir - the file or drirectory to check.
Returns:
the list of order entries to which the file or directory belongs.