public class ModuleUtilCore
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ModuleUtilCore.ModuleVisitor |
Modifier and Type | Field and Description |
---|---|
static Key<Module> |
KEY_MODULE |
Constructor and Description |
---|
ModuleUtilCore() |
Modifier and Type | Method and Description |
---|---|
static void |
collectModulesDependsOn(Module module,
java.util.Set<? super Module> result)
collect transitive module dependants
|
static Module |
findModuleForFile(PsiFile containingFile) |
static Module |
findModuleForFile(VirtualFile file,
Project project) |
static Module |
findModuleForPsiElement(PsiElement element) |
static java.util.List<Module> |
getAllDependentModules(Module module) |
static void |
getDependencies(Module module,
java.util.Set<? super Module> modules) |
static java.lang.String |
getModuleDirPath(Module module) |
static java.lang.String |
getModuleNameInReadAction(Module module) |
static boolean |
isModuleDir(Module module,
VirtualFile dir) |
static boolean |
isModuleDisposed(PsiElement element) |
static boolean |
isModuleFile(Module module,
VirtualFile file) |
static boolean |
moduleContainsFile(Module module,
VirtualFile file,
boolean isLibraryElement) |
static boolean |
projectContainsFile(Project project,
VirtualFile file,
boolean isLibraryElement) |
static boolean |
visitMeAndDependentModules(Module module,
ModuleUtilCore.ModuleVisitor visitor) |
public static boolean projectContainsFile(Project project, VirtualFile file, boolean isLibraryElement)
public static java.lang.String getModuleNameInReadAction(Module module)
public static boolean isModuleDisposed(PsiElement element)
public static Module findModuleForFile(VirtualFile file, Project project)
public static Module findModuleForPsiElement(PsiElement element)
public static void getDependencies(Module module, java.util.Set<? super Module> modules)
public static void collectModulesDependsOn(Module module, java.util.Set<? super Module> result)
module
- to find dependencies onresult
- resulted setpublic static boolean visitMeAndDependentModules(Module module, ModuleUtilCore.ModuleVisitor visitor)
public static boolean moduleContainsFile(Module module, VirtualFile file, boolean isLibraryElement)
public static boolean isModuleFile(Module module, VirtualFile file)
public static boolean isModuleDir(Module module, VirtualFile dir)
public static java.lang.String getModuleDirPath(Module module)