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, processPackageDirectories
public PsiElementFinderImpl(Project project)
@Deprecated public PsiElementFinderImpl(Project project, JavaFileManager javaFileManager)
PsiElementFinderImpl(Project)
public PsiClass findClass(java.lang.String qualifiedName, GlobalSearchScope scope)
PsiElementFinder
findClass
in class PsiElementFinder
qualifiedName
- 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)
PsiElementFinder
findClasses
in class PsiElementFinder
qualifiedName
- 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)
PsiElementFinder
findPackage
in class PsiElementFinder
qualifiedName
- the full-qualified name of the package to find.JavaPsiFacade.findPackage(String)
public PsiPackage [] getSubPackages(PsiPackage psiPackage, GlobalSearchScope scope)
PsiElementFinder
getSubPackages
in class PsiElementFinder
psiPackage
- 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)
PsiElementFinder
getClasses
in class PsiElementFinder
psiPackage
- 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)
PsiElementFinder
getClasses
in class PsiElementFinder
shortName
- 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)
PsiElementFinder
getClassNames
in class PsiElementFinder
public boolean processPackageDirectories(PsiPackage psiPackage, GlobalSearchScope scope, Processor<? super PsiDirectory> consumer, boolean includeLibrarySources)
processPackageDirectories
in class PsiElementFinder