public class CorePackageIndex extends PackageIndex
Constructor and Description |
---|
CorePackageIndex() |
Modifier and Type | Method and Description |
---|---|
void |
addToClasspath(VirtualFile root) |
VirtualFile [] |
getDirectoriesByPackageName(java.lang.String packageName,
boolean includeLibrarySources)
Returns all directories in content sources and libraries (and optionally library sources)
corresponding to the given package name.
|
Query<VirtualFile> |
getDirsByPackageName(java.lang.String packageName,
boolean includeLibrarySources)
Returns all directories in content sources and libraries (and optionally library sources)
corresponding to the given package name as a query object (allowing to perform partial iteration of the results).
|
getInstance
public VirtualFile [] getDirectoriesByPackageName(java.lang.String packageName, boolean includeLibrarySources)
PackageIndex
getDirectoriesByPackageName
in class PackageIndex
packageName
- the name of the package for which directories are requested.includeLibrarySources
- if true, directories under library sources are included in the returned list.public Query<VirtualFile> getDirsByPackageName(java.lang.String packageName, boolean includeLibrarySources)
PackageIndex
getDirsByPackageName
in class PackageIndex
packageName
- the name of the package for which directories are requested.includeLibrarySources
- if true, directories under library sources are included in the returned list.public void addToClasspath(VirtualFile root)