public class PackageDirectoryCache
extends java.lang.Object
Constructor and Description |
---|
PackageDirectoryCache(MultiMap<java.lang.String,VirtualFile> rootsByPackagePrefix) |
Modifier and Type | Method and Description |
---|---|
static PackageDirectoryCache |
createCache(java.util.List<? extends VirtualFile> roots) |
java.util.List<VirtualFile> |
getDirectoriesByPackageName(java.lang.String packageName) |
java.util.Set<java.lang.String> |
getSubpackageNames(java.lang.String packageName) |
java.util.Set<java.lang.String> |
getSubpackageNames(java.lang.String packageName,
GlobalSearchScope scope) |
protected boolean |
isPackageDirectory(VirtualFile dir,
java.lang.String packageName) |
void |
onLowMemory() |
public PackageDirectoryCache(MultiMap<java.lang.String,VirtualFile> rootsByPackagePrefix)
public void onLowMemory()
public java.util.List<VirtualFile> getDirectoriesByPackageName(java.lang.String packageName)
public java.util.Set<java.lang.String> getSubpackageNames(java.lang.String packageName)
public java.util.Set<java.lang.String> getSubpackageNames(java.lang.String packageName, GlobalSearchScope scope)
public static PackageDirectoryCache createCache(java.util.List<? extends VirtualFile> roots)
protected boolean isPackageDirectory(VirtualFile dir, java.lang.String packageName)