public class PackagePrefixElementFinder extends PsiElementFinder implements DumbAware
EP, EP_NAME
Constructor and Description |
---|
PackagePrefixElementFinder(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.
|
static PackagePrefixElementFinder |
getInstance(Project project) |
PsiPackage [] |
getSubPackages(PsiPackage psiPackage,
GlobalSearchScope scope)
Returns the list of subpackages of the specified package in the specified search scope.
|
boolean |
packagePrefixExists(java.lang.String packageQName) |
filterByName, getClasses, getClasses, getClassesFilter, getClassNames, getClassNames, getPackageFiles, getPackageFilesFilter, processPackageDirectories, processPackageDirectories
public PackagePrefixElementFinder(Project project)
public static PackagePrefixElementFinder getInstance(Project 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 boolean packagePrefixExists(java.lang.String packageQName)