public class FilenameIndex
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ID<java.lang.String,java.lang.Void> |
NAME |
Constructor and Description |
---|
FilenameIndex() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String [] |
getAllFilenames(Project project) |
static java.util.Collection<VirtualFile> |
getAllFilesByExt(Project project,
java.lang.String ext)
Returns all files in the project by extension
|
static java.util.Collection<VirtualFile> |
getAllFilesByExt(Project project,
java.lang.String ext,
GlobalSearchScope searchScope) |
static PsiFile [] |
getFilesByName(Project project,
java.lang.String name,
GlobalSearchScope scope) |
static PsiFileSystemItem [] |
getFilesByName(Project project,
java.lang.String name,
GlobalSearchScope scope,
boolean directories) |
static java.util.Collection<VirtualFile> |
getVirtualFilesByName(Project project,
java.lang.String name,
boolean caseSensitively,
GlobalSearchScope scope) |
static java.util.Collection<VirtualFile> |
getVirtualFilesByName(Project project,
java.lang.String name,
GlobalSearchScope scope) |
static void |
processAllFileNames(Processor<? super java.lang.String> processor,
GlobalSearchScope scope,
IdFilter filter) |
static boolean |
processFilesByName(java.lang.String name,
boolean directories,
boolean caseSensitively,
Processor<? super PsiFileSystemItem> processor,
GlobalSearchScope scope,
Project project,
IdFilter idFilter) |
static boolean |
processFilesByName(java.lang.String name,
boolean directories,
Processor<? super PsiFileSystemItem> processor,
GlobalSearchScope scope,
Project project,
IdFilter idFilter) |
public static final ID<java.lang.String,java.lang.Void> NAME
public static java.lang.String [] getAllFilenames(Project project)
public static void processAllFileNames(Processor<? super java.lang.String> processor, GlobalSearchScope scope, IdFilter filter)
public static java.util.Collection<VirtualFile> getVirtualFilesByName(Project project, java.lang.String name, GlobalSearchScope scope)
public static java.util.Collection<VirtualFile> getVirtualFilesByName(Project project, java.lang.String name, boolean caseSensitively, GlobalSearchScope scope)
public static PsiFile [] getFilesByName(Project project, java.lang.String name, GlobalSearchScope scope)
public static boolean processFilesByName(java.lang.String name, boolean directories, Processor<? super PsiFileSystemItem> processor, GlobalSearchScope scope, Project project, IdFilter idFilter)
public static boolean processFilesByName(java.lang.String name, boolean directories, boolean caseSensitively, Processor<? super PsiFileSystemItem> processor, GlobalSearchScope scope, Project project, IdFilter idFilter)
public static PsiFileSystemItem [] getFilesByName(Project project, java.lang.String name, GlobalSearchScope scope, boolean directories)
public static java.util.Collection<VirtualFile> getAllFilesByExt(Project project, java.lang.String ext)
project
- current projectext
- file extension without leading dot e.q. "txt", "wsdl"public static java.util.Collection<VirtualFile> getAllFilesByExt(Project project, java.lang.String ext, GlobalSearchScope searchScope)