public class JavaSourceModuleNameIndex extends ScalarIndexExtension<java.lang.String>
VOID_DATA_EXTERNALIZEREXTENSION_POINT_NAME| Constructor and Description |
|---|
JavaSourceModuleNameIndex() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dependsOnFileContent() |
static java.util.Collection<java.lang.String> |
getAllKeys(Project project) |
static java.util.Collection<VirtualFile> |
getFilesByKey(java.lang.String moduleName,
GlobalSearchScope scope) |
java.util.Collection<FileType> |
getFileTypesWithSizeLimitNotApplicable()
For most indices the method should return an empty collection.
|
DataIndexer<java.lang.String,java.lang.Void,FileContent> |
getIndexer() |
FileBasedIndex.InputFilter |
getInputFilter() |
KeyDescriptor<java.lang.String> |
getKeyDescriptor() |
ID<java.lang.String,java.lang.Void> |
getName() |
int |
getVersion() |
getValueExternalizergetCacheSize, hasSnapshotMapping, indexDirectories, keyIsUniqueForIndexedFile, needsForwardIndexWhenSharing, traceKeyHashToVirtualFileMappingpublic ID<java.lang.String,java.lang.Void> getName()
getName in class FileBasedIndexExtension<java.lang.String,java.lang.Void>public int getVersion()
getVersion in class IndexExtension<java.lang.String,java.lang.Void,FileContent>public KeyDescriptor<java.lang.String> getKeyDescriptor()
getKeyDescriptor in class IndexExtension<java.lang.String,java.lang.Void,FileContent>public boolean dependsOnFileContent()
dependsOnFileContent in class FileBasedIndexExtension<java.lang.String,java.lang.Void>public FileBasedIndex.InputFilter getInputFilter()
getInputFilter in class FileBasedIndexExtension<java.lang.String,java.lang.Void>IndexExtension.getIndexer().
Usually DefaultFileTypeSpecificInputFilter can be used here to index only files with given file-type.
Note that check only file's extension is usually error-prone way and prefer to check VirtualFile.getFileType():
for example user can enforce language file as plain text one.public DataIndexer<java.lang.String,java.lang.Void,FileContent> getIndexer()
getIndexer in class IndexExtension<java.lang.String,java.lang.Void,FileContent>public java.util.Collection<FileType> getFileTypesWithSizeLimitNotApplicable()
FileBasedIndexExtensiongetFileTypesWithSizeLimitNotApplicable in class FileBasedIndexExtension<java.lang.String,java.lang.Void>PersistentFSConstants.getMaxIntellisenseFileSize().
Use carefully, because indexing large files may influence index update speed dramatically.
public static java.util.Collection<VirtualFile> getFilesByKey(java.lang.String moduleName, GlobalSearchScope scope)
public static java.util.Collection<java.lang.String> getAllKeys(Project project)