public class IdeaOpenApiClassFinder extends NonClasspathClassFinder
myProject
EP, EP_NAME
Constructor and Description |
---|
IdeaOpenApiClassFinder(Project project) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<VirtualFile> |
calcClassRoots() |
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.
|
protected PackageDirectoryCache |
getCache(GlobalSearchScope scope) |
PsiPackage [] |
getSubPackages(PsiPackage psiPackage,
GlobalSearchScope scope)
Returns the list of subpackages of the specified package in the specified search scope.
|
addNonClasspathScope, clearCache, createCache, findClasses, findPackage, getClasses, getClassNames, getClassRoots, getClassRoots, getPsiManager, processPackageDirectories
filterByName, getClasses, getClassesFilter, getClassNames, getPackageFiles, getPackageFilesFilter, processPackageDirectories
public IdeaOpenApiClassFinder(Project project)
protected PackageDirectoryCache getCache(GlobalSearchScope scope)
getCache
in class NonClasspathClassFinder
protected java.util.List<VirtualFile> calcClassRoots()
calcClassRoots
in class NonClasspathClassFinder
public PsiClass findClass(java.lang.String qualifiedName, GlobalSearchScope scope)
PsiElementFinder
findClass
in class NonClasspathClassFinder
qualifiedName
- the full-qualified name of the class to find.scope
- the scope to search.JavaPsiFacade.findClass(String, GlobalSearchScope)
public PsiPackage [] getSubPackages(PsiPackage psiPackage, GlobalSearchScope scope)
PsiElementFinder
getSubPackages
in class NonClasspathClassFinder
psiPackage
- the package to return the list of subpackages for.scope
- the scope in which subpackages are searched.PsiPackage.getSubPackages(GlobalSearchScope)