public final class PsiElementFinderImpl extends PsiElementFinder implements DumbAware
EP, EP_NAME| Constructor and Description |
|---|
PsiElementFinderImpl(Project project) |
PsiElementFinderImpl(Project project,
JavaFileManager javaFileManager)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
PsiClass |
findClass(java.lang.String qualifiedName,
GlobalSearchScope scope)
Searches the specified scope within the project for a class with the specified full-qualified
name and returns one if it is found.
|
PsiClass [] |
findClasses(java.lang.String qualifiedName,
GlobalSearchScope scope)
Searches the specified scope within the project for classes with the specified full-qualified
name and returns all found classes.
|
PsiPackage |
findPackage(java.lang.String qualifiedName)
Searches the project for the package with the specified full-qualified name and returns one
if it is found.
|
PsiClass [] |
getClasses(PsiPackage psiPackage,
GlobalSearchScope scope)
Returns the list of classes in the specified package and in the specified search scope.
|
PsiClass [] |
getClasses(java.lang.String shortName,
PsiPackage psiPackage,
GlobalSearchScope scope)
Returns the list of classes in the specified package and in the specified search scope.
|
java.util.Set<java.lang.String> |
getClassNames(PsiPackage psiPackage,
GlobalSearchScope scope)
A method to optimize resolve (to only search classes in a package which might be there)
|
PsiPackage [] |
getSubPackages(PsiPackage psiPackage,
GlobalSearchScope scope)
Returns the list of subpackages of the specified package in the specified search scope.
|
boolean |
processPackageDirectories(PsiPackage psiPackage,
GlobalSearchScope scope,
Processor<? super PsiDirectory> consumer,
boolean includeLibrarySources) |
filterByName, getClassesFilter, getClassNames, getPackageFiles, getPackageFilesFilter, processPackageDirectoriespublic PsiElementFinderImpl(Project project)
@Deprecated public PsiElementFinderImpl(Project project, JavaFileManager javaFileManager)
PsiElementFinderImpl(Project)public PsiClass findClass(java.lang.String qualifiedName, GlobalSearchScope scope)
PsiElementFinderfindClass in class PsiElementFinderqualifiedName - the full-qualified name of the class to find.scope - the scope to search.JavaPsiFacade.findClass(String, GlobalSearchScope)public PsiClass [] findClasses(java.lang.String qualifiedName, GlobalSearchScope scope)
PsiElementFinderfindClasses in class PsiElementFinderqualifiedName - the full-qualified name of the class to find.scope - the scope to search.JavaPsiFacade.findClasses(String, GlobalSearchScope)public PsiPackage findPackage(java.lang.String qualifiedName)
PsiElementFinderfindPackage in class PsiElementFinderqualifiedName - the full-qualified name of the package to find.JavaPsiFacade.findPackage(String)public PsiPackage [] getSubPackages(PsiPackage psiPackage, GlobalSearchScope scope)
PsiElementFindergetSubPackages in class PsiElementFinderpsiPackage - the package to return the list of subpackages for.scope - the scope in which subpackages are searched.PsiPackage.getSubPackages(GlobalSearchScope)public PsiClass [] getClasses(PsiPackage psiPackage, GlobalSearchScope scope)
PsiElementFindergetClasses in class PsiElementFinderpsiPackage - the package to return the list of classes in.scope - the scope in which classes are searched.PsiPackage.getClasses(GlobalSearchScope)public PsiClass [] getClasses(java.lang.String shortName, PsiPackage psiPackage, GlobalSearchScope scope)
PsiElementFindergetClasses in class PsiElementFindershortName - short name of the classpsiPackage - the package to return the list of classes in.scope - the scope in which classes are searched.PsiPackage.getClasses(GlobalSearchScope)public java.util.Set<java.lang.String> getClassNames(PsiPackage psiPackage, GlobalSearchScope scope)
PsiElementFindergetClassNames in class PsiElementFinderpublic boolean processPackageDirectories(PsiPackage psiPackage, GlobalSearchScope scope, Processor<? super PsiDirectory> consumer, boolean includeLibrarySources)
processPackageDirectories in class PsiElementFinder