public class MigrationElementFinder extends PsiElementFinder implements DumbAware
EP, EP_NAME| Constructor and Description |
|---|
MigrationElementFinder(Project project) |
| 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.
|
PsiPackage [] |
getSubPackages(PsiPackage psiPackage,
GlobalSearchScope scope)
Returns the list of subpackages of the specified package in the specified search scope.
|
filterByName, getClasses, getClassesFilter, getClassNames, getClassNames, getPackageFiles, getPackageFilesFilter, processPackageDirectories, processPackageDirectoriespublic MigrationElementFinder(Project 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 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 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 PsiPackage findPackage(java.lang.String qualifiedName)
PsiElementFinderfindPackage in class PsiElementFinderqualifiedName - the full-qualified name of the package to find.JavaPsiFacade.findPackage(String)